mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-22 17:46:37 +03:00
Update for an Issue #155
This commit is contained in:
parent
32a36f1ff3
commit
a927d94d39
|
@ -633,17 +633,17 @@ def heuristicCheckSqlInjection(place, parameter):
|
|||
infoMsg = "heuristic test shows that %s " % place
|
||||
infoMsg += "parameter '%s' might " % parameter
|
||||
|
||||
kb.heuristicTest = result
|
||||
|
||||
if not result and kb.dynamicParameter:
|
||||
_ = conf.paramDict[place][parameter]
|
||||
|
||||
if _.isdigit():
|
||||
if _ and _.isdigit():
|
||||
randInt = int(randomInt())
|
||||
payload = "%s%s%s" % (prefix, "%s-%s" % (int(_) + randInt, randInt), suffix)
|
||||
payload = agent.payload(place, parameter, newValue=payload, where=PAYLOAD.WHERE.REPLACE)
|
||||
result = Request.queryPage(payload, place, raise404=False)
|
||||
|
||||
kb.heuristicTest = result
|
||||
|
||||
if result:
|
||||
infoMsg += "be injectable (possible DBMS: %s)" % (Format.getErrorParsedDBMSes() or UNKNOWN_DBMS_VERSION)
|
||||
logger.info(infoMsg)
|
||||
|
|
Loading…
Reference in New Issue
Block a user