mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-22 17:46:37 +03:00
minor update
This commit is contained in:
parent
aa931efd4d
commit
db260c44d3
|
@ -405,12 +405,19 @@ def goStacked(expression, silent=False):
|
|||
|
||||
return payload, page
|
||||
|
||||
def goError(expression):
|
||||
def goError(expression, suppressOutput=False):
|
||||
#expression = cleanQuery(expression)
|
||||
|
||||
if suppressOutput:
|
||||
pushValue(conf.verbose)
|
||||
conf.verbose = 0
|
||||
|
||||
if conf.direct:
|
||||
return direct(expression), None
|
||||
|
||||
result = errorUse(expression)
|
||||
|
||||
if suppressOutput:
|
||||
conf.verbose = popValue()
|
||||
|
||||
return result
|
||||
|
|
|
@ -31,7 +31,7 @@ def errorTest():
|
|||
|
||||
randInt = getUnicode(randomInt(1))
|
||||
query = queries[kb.dbms].case.query % ("%s=%s" % (randInt, randInt))
|
||||
result = inject.goError(query)
|
||||
result = inject.goError(query, True)
|
||||
|
||||
if result:
|
||||
infoMsg = "the web application supports error based injection "
|
||||
|
|
Loading…
Reference in New Issue
Block a user