mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-12-07 05:01:30 +00:00
little clean up
This commit is contained in:
@@ -33,6 +33,7 @@ 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.settings import URI_INJECTION_MARK_CHAR
|
||||
from lib.core.xmldump import dumper as xmldumper
|
||||
from lib.request.connect import Connect as Request
|
||||
|
||||
@@ -80,7 +81,7 @@ def __setRequestParams():
|
||||
conf.method = HTTPMETHOD.POST
|
||||
|
||||
if re.search(URI_INJECTABLE_REGEX, conf.url, re.I):
|
||||
conf.url = "%s*" % conf.url
|
||||
conf.url = "%s%s" % (conf.url, URI_INJECTION_MARK_CHAR)
|
||||
|
||||
if "*" in conf.url:
|
||||
conf.parameters[PLACE.URI] = conf.url
|
||||
|
||||
Reference in New Issue
Block a user