mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-02-18 04:20:35 +03:00
cleaner solution for the problem solved with last commit
This commit is contained in:
parent
f5cff067c6
commit
b79d4f70f3
|
@ -1203,8 +1203,9 @@ def __cleanupOptions():
|
||||||
if conf.data:
|
if conf.data:
|
||||||
conf.data = urldecode(conf.data)
|
conf.data = urldecode(conf.data)
|
||||||
|
|
||||||
if conf.timeSec == TIME_DEFAULT_DELAY:
|
# to distinguish explicit usafe of --time-sec
|
||||||
conf.timeSec = int(conf.timeSec)
|
if conf.timeSec is None:
|
||||||
|
conf.timeSec = TIME_DEFAULT_DELAY
|
||||||
kb.adjustTimeDelay = True
|
kb.adjustTimeDelay = True
|
||||||
else:
|
else:
|
||||||
kb.adjustTimeDelay = False
|
kb.adjustTimeDelay = False
|
||||||
|
|
|
@ -75,8 +75,8 @@ UNION_STDEV_COEFF = 7
|
||||||
# length of queue for candidates for time delay adjustment
|
# length of queue for candidates for time delay adjustment
|
||||||
TIME_DELAY_CANDIDATES = 3
|
TIME_DELAY_CANDIDATES = 3
|
||||||
|
|
||||||
# default time delay in seconds (decimal places added to distinguish explicit usage of --time-sec)
|
# default time delay in seconds
|
||||||
TIME_DEFAULT_DELAY = 5.0001
|
TIME_DEFAULT_DELAY = 5
|
||||||
|
|
||||||
# HTTP timeout in silent mode
|
# HTTP timeout in silent mode
|
||||||
HTTP_SILENT_TIMEOUT = 3
|
HTTP_SILENT_TIMEOUT = 3
|
||||||
|
|
|
@ -212,9 +212,9 @@ def cmdLineParser():
|
||||||
"(default BEUST)")
|
"(default BEUST)")
|
||||||
|
|
||||||
techniques.add_option("--time-sec", dest="timeSec",
|
techniques.add_option("--time-sec", dest="timeSec",
|
||||||
type="int", default=TIME_DEFAULT_DELAY,
|
type="int", default=None,
|
||||||
help="Seconds to delay the DBMS response "
|
help="Seconds to delay the DBMS response "
|
||||||
"(default %s)" % int(TIME_DEFAULT_DELAY))
|
"(default %s)" % TIME_DEFAULT_DELAY)
|
||||||
|
|
||||||
techniques.add_option("--union-cols", dest="uCols",
|
techniques.add_option("--union-cols", dest="uCols",
|
||||||
help="Range of columns to test for UNION query SQL injection")
|
help="Range of columns to test for UNION query SQL injection")
|
||||||
|
|
Loading…
Reference in New Issue
Block a user