introduction of --fresh-queries

This commit is contained in:
Miroslav Stampar 2011-03-24 10:08:47 +00:00
parent 762397854e
commit ecbbfeba6e
4 changed files with 10 additions and 1 deletions

View File

@ -149,6 +149,7 @@ optDict = {
"trafficFile": "string",
"sessionFile": "string",
"flushSession": "boolean",
"freshQueries": "boolean",
"forms": "boolean",
"eta": "boolean",
"updateAll": "boolean",

View File

@ -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 "

View File

@ -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 = (

View File

@ -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