Skip to content

Commit 6e8ebd3

Browse files
committed
Hide switch -x (XML output format) as it is incomplete and bugged and won't make it for 0.9 stable
1 parent 60605b6 commit 6e8ebd3

4 files changed

Lines changed: 11 additions & 14 deletions

File tree

lib/core/optiondict.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -145,9 +145,9 @@
145145
},
146146

147147
"General": {
148-
"xmlFile": "string",
149-
"sessionFile": "string",
148+
#"xmlFile": "string",
150149
"trafficFile": "string",
150+
"sessionFile": "string",
151151
"flushSession": "boolean",
152152
"forms": "boolean",
153153
"eta": "boolean",

lib/core/target.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ def __createDumpDir():
238238
os.makedirs(conf.dumpPath, 0755)
239239

240240
def __configureDumper():
241-
if conf.xmlFile:
241+
if hasattr(conf, 'xmlFile') and conf.xmlFile:
242242
conf.dumper = xmldumper
243243
else:
244244
conf.dumper = dumper

lib/parse/cmdline.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -432,17 +432,17 @@ def cmdLineParser():
432432
general = OptionGroup(parser, "General", "These options can be used "
433433
"to set some general working parameters. " )
434434

435-
general.add_option("-x", dest="xmlFile",
436-
help="Dump the data into an XML file")
437-
438-
general.add_option("-s", dest="sessionFile",
439-
help="Save and resume all data retrieved "
440-
"on a session file")
435+
#general.add_option("-x", dest="xmlFile",
436+
# help="Dump the data into an XML file")
441437

442438
general.add_option("-t", dest="trafficFile",
443439
help="Log all HTTP traffic into a "
444440
"textual file")
445441

442+
general.add_option("-s", dest="sessionFile",
443+
help="Save and resume all data retrieved "
444+
"on a session file")
445+
446446
general.add_option("--flush-session", dest="flushSession",
447447
action="store_true", default=False,
448448
help="Flush session file for current target")

sqlmap.conf

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -478,15 +478,12 @@ regType =
478478
# These options can be used to set some general working parameters.
479479
[General]
480480

481-
# Dump the data into an XML file.
482-
xmlFile =
481+
# Log all HTTP traffic into a textual file.
482+
trafficFile =
483483

484484
# Save and resume all data retrieved on a session file.
485485
sessionFile =
486486

487-
# Log all HTTP traffic into a textual file.
488-
trafficFile =
489-
490487
# Flush session file for current target.
491488
# Valid: True or False
492489
flushSession = False

0 commit comments

Comments
 (0)