diff --git a/lib/core/optiondict.py b/lib/core/optiondict.py index e6d0dda52..0a4a62a3a 100644 --- a/lib/core/optiondict.py +++ b/lib/core/optiondict.py @@ -145,9 +145,9 @@ optDict = { }, "General": { - "xmlFile": "string", - "sessionFile": "string", + #"xmlFile": "string", "trafficFile": "string", + "sessionFile": "string", "flushSession": "boolean", "forms": "boolean", "eta": "boolean", diff --git a/lib/core/target.py b/lib/core/target.py index 904c5bfd6..ba0de75fc 100644 --- a/lib/core/target.py +++ b/lib/core/target.py @@ -238,7 +238,7 @@ def __createDumpDir(): os.makedirs(conf.dumpPath, 0755) def __configureDumper(): - if conf.xmlFile: + if hasattr(conf, 'xmlFile') and conf.xmlFile: conf.dumper = xmldumper else: conf.dumper = dumper diff --git a/lib/parse/cmdline.py b/lib/parse/cmdline.py index bd01062cf..547bece8b 100644 --- a/lib/parse/cmdline.py +++ b/lib/parse/cmdline.py @@ -432,17 +432,17 @@ def cmdLineParser(): general = OptionGroup(parser, "General", "These options can be used " "to set some general working parameters. " ) - general.add_option("-x", dest="xmlFile", - help="Dump the data into an XML file") - - general.add_option("-s", dest="sessionFile", - help="Save and resume all data retrieved " - "on a session file") + #general.add_option("-x", dest="xmlFile", + # help="Dump the data into an XML file") general.add_option("-t", dest="trafficFile", help="Log all HTTP traffic into a " "textual file") + general.add_option("-s", dest="sessionFile", + help="Save and resume all data retrieved " + "on a session file") + general.add_option("--flush-session", dest="flushSession", action="store_true", default=False, help="Flush session file for current target") diff --git a/sqlmap.conf b/sqlmap.conf index 2ea5ce5dc..3e5480ef3 100644 --- a/sqlmap.conf +++ b/sqlmap.conf @@ -478,15 +478,12 @@ regType = # These options can be used to set some general working parameters. [General] -# Dump the data into an XML file. -xmlFile = +# Log all HTTP traffic into a textual file. +trafficFile = # Save and resume all data retrieved on a session file. sessionFile = -# Log all HTTP traffic into a textual file. -trafficFile = - # Flush session file for current target. # Valid: True or False flushSession = False