mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-08-04 06:50:14 +00:00
error based update
This commit is contained in:
parent
d0ebe428da
commit
4bc541ec3c
3 changed files with 8 additions and 5 deletions
|
|
@ -488,6 +488,9 @@ def cmdLineParser():
|
|||
parser.add_option("--profile", dest="profile", action="store_true",
|
||||
default=False, help=SUPPRESS_HELP)
|
||||
|
||||
parser.add_option("--error", dest="error", action="store_true",
|
||||
default=False, help=SUPPRESS_HELP)
|
||||
|
||||
parser.add_option("--cpu-throttle", dest="cpuThrottle", type="int", default=10,
|
||||
help=SUPPRESS_HELP)
|
||||
|
||||
|
|
|
|||
|
|
@ -358,8 +358,8 @@ def __goError(expression, resumeValue=True):
|
|||
|
||||
if match:
|
||||
output = match.group('result')
|
||||
if kb.dbms == "Oracle" and output:
|
||||
output = output.replace("__SPACE__", " ")
|
||||
if output:
|
||||
output = output.replace("%c%c" % (58, 59), " ").replace("%c%c" % (59, 58), "")
|
||||
|
||||
return output
|
||||
|
||||
|
|
@ -385,7 +385,7 @@ def getValue(expression, blind=True, inband=True, error=False, fromUser=False, e
|
|||
|
||||
expression = expression.replace("DISTINCT ", "")
|
||||
|
||||
if error:
|
||||
if error or conf.error:
|
||||
value = __goError(expression)
|
||||
|
||||
if not value:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue