mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-29 04:53:48 +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:
|
||||
conf.data = urldecode(conf.data)
|
||||
|
||||
if conf.timeSec == TIME_DEFAULT_DELAY:
|
||||
conf.timeSec = int(conf.timeSec)
|
||||
# to distinguish explicit usafe of --time-sec
|
||||
if conf.timeSec is None:
|
||||
conf.timeSec = TIME_DEFAULT_DELAY
|
||||
kb.adjustTimeDelay = True
|
||||
else:
|
||||
kb.adjustTimeDelay = False
|
||||
|
|
|
@ -75,8 +75,8 @@ UNION_STDEV_COEFF = 7
|
|||
# length of queue for candidates for time delay adjustment
|
||||
TIME_DELAY_CANDIDATES = 3
|
||||
|
||||
# default time delay in seconds (decimal places added to distinguish explicit usage of --time-sec)
|
||||
TIME_DEFAULT_DELAY = 5.0001
|
||||
# default time delay in seconds
|
||||
TIME_DEFAULT_DELAY = 5
|
||||
|
||||
# HTTP timeout in silent mode
|
||||
HTTP_SILENT_TIMEOUT = 3
|
||||
|
|
|
@ -212,9 +212,9 @@ def cmdLineParser():
|
|||
"(default BEUST)")
|
||||
|
||||
techniques.add_option("--time-sec", dest="timeSec",
|
||||
type="int", default=TIME_DEFAULT_DELAY,
|
||||
type="int", default=None,
|
||||
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",
|
||||
help="Range of columns to test for UNION query SQL injection")
|
||||
|
|
Loading…
Reference in New Issue
Block a user