mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-07-29 20:46:36 +00:00
Update for an Issue #287
This commit is contained in:
parent
ef33729381
commit
a6448e8768
5 changed files with 54 additions and 15 deletions
|
|
@ -6,6 +6,7 @@ See the file 'doc/COPYING' for copying permission
|
|||
"""
|
||||
|
||||
import bdb
|
||||
import logging
|
||||
import os
|
||||
import sys
|
||||
import time
|
||||
|
|
@ -33,6 +34,7 @@ from lib.core.exception import SqlmapUserQuitException
|
|||
from lib.core.option import init
|
||||
from lib.core.profiling import profile
|
||||
from lib.core.settings import LEGAL_DISCLAIMER
|
||||
from lib.core.settings import XMLRPC_SERVER_PORT
|
||||
from lib.core.testing import smokeTest
|
||||
from lib.core.testing import liveTest
|
||||
from lib.parse.cmdline import cmdLineParser
|
||||
|
|
@ -63,7 +65,8 @@ def main():
|
|||
cmdLineOptions.update(cmdLineParser().__dict__)
|
||||
|
||||
if cmdLineOptions.xmlRpc:
|
||||
server = XMLRPCServer()
|
||||
logger.setLevel(logging.INFO)
|
||||
server = XMLRPCServer(cmdLineOptions.xmlRpcPort or XMLRPC_SERVER_PORT)
|
||||
server.serve()
|
||||
else:
|
||||
init(cmdLineOptions)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue