mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-03-03 11:45:46 +03:00
Making those --string tips (containing escaped characters) decodable by sqlmap
This commit is contained in:
parent
142fc887f1
commit
6f529542e3
|
@ -365,7 +365,7 @@ def checkSqlInjection(place, parameter, value):
|
|||
candidates = filter(None, (_.strip() if _.strip() in (kb.pageTemplate or "") and _.strip() not in falsePage else None for _ in (trueSet - falseSet)))
|
||||
if candidates:
|
||||
conf.string = random.sample(candidates, 1)[0]
|
||||
infoMsg = "%s parameter '%s' seems to be '%s' injectable (with --string=%s)" % (place, parameter, title, repr(conf.string).lstrip('u'))
|
||||
infoMsg = "%s parameter '%s' seems to be '%s' injectable (with --string=\"%s\")" % (place, parameter, title, repr(conf.string).lstrip('u').strip("'"))
|
||||
logger.info(infoMsg)
|
||||
|
||||
injectable = True
|
||||
|
|
|
@ -1375,6 +1375,9 @@ def __cleanupOptions():
|
|||
if conf.oDir:
|
||||
paths.SQLMAP_OUTPUT_PATH = conf.oDir
|
||||
|
||||
if conf.string:
|
||||
conf.string = conf.string.decode("unicode_escape")
|
||||
|
||||
threadData = getCurrentThreadData()
|
||||
threadData.reset()
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user