mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-08-04 06:50:14 +00:00
Adapted and merged in patch to support XML output (-x switch) - still in beta.
Minor bug fixes and adjustments.
This commit is contained in:
parent
a138dbe5f6
commit
06af405efd
14 changed files with 964 additions and 86 deletions
|
|
@ -37,6 +37,7 @@ from lib.core.exception import sqlmapFilePathException
|
|||
from lib.core.exception import sqlmapGenericException
|
||||
from lib.core.exception import sqlmapSyntaxException
|
||||
from lib.core.session import resumeConfKb
|
||||
from lib.core.xmldump import dumper as xmldumper
|
||||
|
||||
def __setRequestParams():
|
||||
"""
|
||||
|
|
@ -202,6 +203,14 @@ def __createDumpDir():
|
|||
if not os.path.isdir(conf.dumpPath):
|
||||
os.makedirs(conf.dumpPath, 0755)
|
||||
|
||||
def __configureDumper():
|
||||
if conf.xmlFile:
|
||||
conf.dumper = xmldumper
|
||||
else:
|
||||
conf.dumper = dumper
|
||||
|
||||
conf.dumper.setOutputFile()
|
||||
|
||||
def __createTargetDirs():
|
||||
"""
|
||||
Create the output directory.
|
||||
|
|
@ -215,10 +224,9 @@ def __createTargetDirs():
|
|||
if not os.path.isdir(conf.outputPath):
|
||||
os.makedirs(conf.outputPath, 0755)
|
||||
|
||||
dumper.setOutputFile()
|
||||
|
||||
__createDumpDir()
|
||||
__createFilesDir()
|
||||
__configureDumper()
|
||||
|
||||
def initTargetEnv():
|
||||
"""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue