mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-06-19 12:33:20 +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
|
return payload, page
|
||||||
|
|
||||||
def goError(expression):
|
def goError(expression, suppressOutput=False):
|
||||||
#expression = cleanQuery(expression)
|
#expression = cleanQuery(expression)
|
||||||
|
|
||||||
|
if suppressOutput:
|
||||||
|
pushValue(conf.verbose)
|
||||||
|
conf.verbose = 0
|
||||||
|
|
||||||
if conf.direct:
|
if conf.direct:
|
||||||
return direct(expression), None
|
return direct(expression), None
|
||||||
|
|
||||||
result = errorUse(expression)
|
result = errorUse(expression)
|
||||||
|
|
||||||
|
if suppressOutput:
|
||||||
|
conf.verbose = popValue()
|
||||||
|
|
||||||
return result
|
return result
|
||||||
|
|
|
@ -31,7 +31,7 @@ def errorTest():
|
||||||
|
|
||||||
randInt = getUnicode(randomInt(1))
|
randInt = getUnicode(randomInt(1))
|
||||||
query = queries[kb.dbms].case.query % ("%s=%s" % (randInt, randInt))
|
query = queries[kb.dbms].case.query % ("%s=%s" % (randInt, randInt))
|
||||||
result = inject.goError(query)
|
result = inject.goError(query, True)
|
||||||
|
|
||||||
if result:
|
if result:
|
||||||
infoMsg = "the web application supports error based injection "
|
infoMsg = "the web application supports error based injection "
|
||||||
|
|
Loading…
Reference in New Issue
Block a user