mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-01-21 21:59:20 +00:00
lol. this was a pesky bug. heuristic wasn't working on one mssql test site and i couldn't find why. at end the problem was that when the HTTP code was raised (like 500) no parseResponse was called.
This commit is contained in:
@@ -444,7 +444,8 @@ def heuristicCheckSqlInjection(place, parameter, value):
|
||||
|
||||
payload = "%s%s%s%s" % (value, prefix, randomStr(length=10, alphabet=['"', '\'', ')', '(']), suffix)
|
||||
payload = agent.payload(place, parameter, value, payload)
|
||||
page, _ = Request.queryPage(payload, place, content=True, raise404=False)
|
||||
Request.queryPage(payload, place, content=False, raise404=False)
|
||||
|
||||
result = wasLastRequestDBMSError()
|
||||
|
||||
infoMsg = "heuristic test shows that %s " % place
|
||||
|
||||
Reference in New Issue
Block a user