mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-08-03 22:31:34 +00:00
fix for one of those more complex bugs (comparison was returning None while original page and/or page template were already had already DBMS error inside)
This commit is contained in:
parent
aab14fa2d3
commit
2c23a59ba5
9 changed files with 52 additions and 32 deletions
|
|
@ -265,7 +265,7 @@ def checkSqlInjection(place, parameter, value):
|
|||
elif where == 3:
|
||||
origValue = ""
|
||||
|
||||
kb.pageTemplate = getPageTemplate(templatePayload, place)
|
||||
kb.pageTemplate, kb.errorIsNone = getPageTemplate(templatePayload, place)
|
||||
|
||||
# Forge request payload by prepending with boundary's
|
||||
# prefix and appending the boundary's suffix to the
|
||||
|
|
@ -762,6 +762,7 @@ def checkConnection(suppressOutput=False):
|
|||
try:
|
||||
page, _ = Request.queryPage(content=True)
|
||||
kb.originalPage = kb.pageTemplate = page
|
||||
kb.errorIsNone = not wasLastRequestDBMSError()
|
||||
except sqlmapConnectionException, errMsg:
|
||||
errMsg = getUnicode(errMsg)
|
||||
raise sqlmapConnectionException, errMsg
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue