minor update

This commit is contained in:
Miroslav Stampar 2010-10-24 22:25:05 +00:00
parent aa931efd4d
commit db260c44d3
2 changed files with 9 additions and 2 deletions

View File

@ -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

View File

@ -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 "