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