From a2a71bb37bb895554b176cbb4d043ec2f3f901c2 Mon Sep 17 00:00:00 2001 From: Bernardo Damele Date: Fri, 14 Dec 2012 13:37:36 +0000 Subject: [PATCH] cleanup from XML-RPC related stuff --- _sqlmap.py | 17 ----------------- lib/core/settings.py | 3 --- lib/parse/cmdline.py | 8 +------- 3 files changed, 1 insertion(+), 27 deletions(-) diff --git a/_sqlmap.py b/_sqlmap.py index f49587379..8b3917614 100755 --- a/_sqlmap.py +++ b/_sqlmap.py @@ -41,12 +41,10 @@ from lib.core.option import init from lib.core.profiling import profile from lib.core.settings import LEGAL_DISCLAIMER from lib.core.settings import RESTAPI_SERVER_PORT -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 from lib.utils.restapi import restAPIrun -from lib.utils.xmlrpc import XMLRPCServer def modulePath(): """ @@ -68,19 +66,6 @@ def restApiServe(): sys.stdout = StringIO.StringIO() sys.stderr = StringIO.StringIO() -def xmlRpcServe(): - logger.setLevel(logging.INFO) - cmdLineOptions.batch = True - cmdLineOptions.disableColoring = True - server = XMLRPCServer(cmdLineOptions.xmlRpcPort or XMLRPC_SERVER_PORT) - def emit(self, record): - message = stdoutencode(FORMATTER.format(record)) - sys.stdout.write("%s\n" % message.strip('\r')) - LOGGER_HANDLER.emit = types.MethodType(emit, LOGGER_HANDLER, type(LOGGER_HANDLER)) - sys.stdout = StringIO.StringIO() - sys.stderr = StringIO.StringIO() - server.serve() - def main(): """ Main function of sqlmap when running from command line. @@ -99,8 +84,6 @@ def main(): if cmdLineOptions.restApi: restApiServe() - elif cmdLineOptions.xmlRpc: - xmlRpcServe() else: init(cmdLineOptions) diff --git a/lib/core/settings.py b/lib/core/settings.py index a05e7291e..c289e4ecf 100644 --- a/lib/core/settings.py +++ b/lib/core/settings.py @@ -482,9 +482,6 @@ EVENTVALIDATION_REGEX = r'(?i)(?P__EVENTVALIDATION[^"]*)[^>]+value="(?P