mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-08-04 14:55:40 +00:00
update (now URIs like www.site.com/id82 are automatically treated as possible URI injectable)
This commit is contained in:
parent
777a19cfa9
commit
fa58a9c86b
4 changed files with 12 additions and 2 deletions
|
|
@ -32,6 +32,7 @@ from lib.core.option import __setDBMS
|
|||
from lib.core.option import __setKnowledgeBaseAttributes
|
||||
from lib.core.session import resumeConfKb
|
||||
from lib.core.settings import UNICODE_ENCODING
|
||||
from lib.core.settings import URI_INJECTABLE_REGEX
|
||||
from lib.core.xmldump import dumper as xmldumper
|
||||
from lib.request.connect import Connect as Request
|
||||
|
||||
|
|
@ -78,6 +79,9 @@ def __setRequestParams():
|
|||
|
||||
conf.method = HTTPMETHOD.POST
|
||||
|
||||
if re.search(URI_INJECTABLE_REGEX, conf.url, re.I):
|
||||
conf.url = "%s*" % conf.url
|
||||
|
||||
if "*" in conf.url:
|
||||
conf.parameters[PLACE.URI] = conf.url
|
||||
conf.paramDict[PLACE.URI] = {}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue