mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-22 09:36:35 +03:00
introduction of --fresh-queries
This commit is contained in:
parent
762397854e
commit
ecbbfeba6e
|
@ -149,6 +149,7 @@ optDict = {
|
|||
"trafficFile": "string",
|
||||
"sessionFile": "string",
|
||||
"flushSession": "boolean",
|
||||
"freshQueries": "boolean",
|
||||
"forms": "boolean",
|
||||
"eta": "boolean",
|
||||
"updateAll": "boolean",
|
||||
|
|
|
@ -444,6 +444,10 @@ def cmdLineParser():
|
|||
action="store_true", default=False,
|
||||
help="Flush session file for current target")
|
||||
|
||||
general.add_option("--fresh-queries", dest="freshQueries",
|
||||
action="store_true", default=False,
|
||||
help="Ignores query results stored in session file")
|
||||
|
||||
general.add_option("--eta", dest="eta",
|
||||
action="store_true", default=False,
|
||||
help="Display for each output the "
|
||||
|
|
|
@ -97,7 +97,7 @@ def resume(expression, payload):
|
|||
"""
|
||||
|
||||
try:
|
||||
if "sqlmapfile" in expression or "sqlmapoutput" in expression:
|
||||
if "sqlmapfile" in expression or "sqlmapoutput" in expression or conf.freshQueries:
|
||||
return None
|
||||
|
||||
condition = (
|
||||
|
|
|
@ -484,6 +484,10 @@ sessionFile =
|
|||
# Valid: True or False
|
||||
flushSession = False
|
||||
|
||||
# Ignores query results stored in session file.
|
||||
# Valid: True or False
|
||||
freshQueries = False
|
||||
|
||||
# Retrieve each query output length and calculate the estimated time of
|
||||
# arrival in real time.
|
||||
# Valid: True or False
|
||||
|
|
Loading…
Reference in New Issue
Block a user