mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-08-03 22:31:34 +00:00
Consolidate logger messages for --*-test switches
This commit is contained in:
parent
46be570463
commit
486a113560
8 changed files with 62 additions and 68 deletions
|
|
@ -29,7 +29,7 @@ from lib.core.settings import ERROR_EMPTY_CHAR
|
|||
from lib.core.settings import ERROR_START_CHAR
|
||||
from lib.core.settings import ERROR_END_CHAR
|
||||
|
||||
def errorUse(expression):
|
||||
def errorUse(expression, returnPayload=False):
|
||||
"""
|
||||
Retrieve the output of a SQL query taking advantage of an error SQL
|
||||
injection vulnerability on the affected parameter.
|
||||
|
|
@ -79,4 +79,7 @@ def errorUse(expression):
|
|||
infoMsg = "retrieved: %s" % replaceNewlineTabs(output, stdout=True)
|
||||
logger.info(infoMsg)
|
||||
|
||||
return output
|
||||
if returnPayload:
|
||||
return output, payload
|
||||
else:
|
||||
return output
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue