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", "trafficFile": "string",
"sessionFile": "string", "sessionFile": "string",
"flushSession": "boolean", "flushSession": "boolean",
"freshQueries": "boolean",
"forms": "boolean", "forms": "boolean",
"eta": "boolean", "eta": "boolean",
"updateAll": "boolean", "updateAll": "boolean",

View File

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

View File

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

View File

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