mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-08-04 06:50:14 +00:00
First commit (and working one) for an Issue #287 (XML-RPC server)
This commit is contained in:
parent
b5884c7eda
commit
b9f6fc5f4e
4 changed files with 66 additions and 9 deletions
23
_sqlmap.py
23
_sqlmap.py
|
|
@ -36,6 +36,7 @@ from lib.core.settings import LEGAL_DISCLAIMER
|
|||
from lib.core.testing import smokeTest
|
||||
from lib.core.testing import liveTest
|
||||
from lib.parse.cmdline import cmdLineParser
|
||||
from lib.utils.xmlrpc import XMLRPCServer
|
||||
|
||||
def modulePath():
|
||||
"""
|
||||
|
|
@ -61,16 +62,20 @@ def main():
|
|||
# Store original command line options for possible later restoration
|
||||
cmdLineOptions.update(cmdLineParser().__dict__)
|
||||
|
||||
init(cmdLineOptions)
|
||||
|
||||
if conf.profile:
|
||||
profile()
|
||||
elif conf.smokeTest:
|
||||
smokeTest()
|
||||
elif conf.liveTest:
|
||||
liveTest()
|
||||
if cmdLineOptions.xmlRpc:
|
||||
server = XMLRPCServer()
|
||||
server.serve()
|
||||
else:
|
||||
start()
|
||||
init(cmdLineOptions)
|
||||
|
||||
if conf.profile:
|
||||
profile()
|
||||
elif conf.smokeTest:
|
||||
smokeTest()
|
||||
elif conf.liveTest:
|
||||
liveTest()
|
||||
else:
|
||||
start()
|
||||
|
||||
except SqlmapUserQuitException:
|
||||
errMsg = "user quit"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue