mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-12-07 21:21:33 +00:00
Minor update
This commit is contained in:
@@ -31,6 +31,8 @@ class XMLRPCServer:
|
|||||||
|
|
||||||
self.server = SimpleXMLRPCServer(addr=("", self.port), logRequests=False, allow_none=True, encoding=UNICODE_ENCODING)
|
self.server = SimpleXMLRPCServer(addr=("", self.port), logRequests=False, allow_none=True, encoding=UNICODE_ENCODING)
|
||||||
for _ in dir(self):
|
for _ in dir(self):
|
||||||
|
if _.startswith("serve"):
|
||||||
|
continue
|
||||||
if not _.startswith('_') and isinstance(getattr(self, _), types.MethodType):
|
if not _.startswith('_') and isinstance(getattr(self, _), types.MethodType):
|
||||||
self.server.register_function(getattr(self, _))
|
self.server.register_function(getattr(self, _))
|
||||||
logger.info("Registering RPC methods: %s" % str(self.server.system_listMethods()).strip("[]"))
|
logger.info("Registering RPC methods: %s" % str(self.server.system_listMethods()).strip("[]"))
|
||||||
|
|||||||
Reference in New Issue
Block a user