mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-12-01 14:03:52 +03:00
Minor update
This commit is contained in:
parent
af52e8e8c2
commit
32b39c72e4
|
@ -19,7 +19,7 @@ try:
|
||||||
from lib.core.settings import UNICODE_ENCODING
|
from lib.core.settings import UNICODE_ENCODING
|
||||||
from lib.core.settings import XMLRPC_SERVER_PORT
|
from lib.core.settings import XMLRPC_SERVER_PORT
|
||||||
except ImportError:
|
except ImportError:
|
||||||
pass
|
XMLRPC_SERVER_PORT = 8776
|
||||||
|
|
||||||
class XMLRPCServer:
|
class XMLRPCServer:
|
||||||
def __init__(self, port):
|
def __init__(self, port):
|
||||||
|
@ -61,8 +61,9 @@ if __name__ == "__main__":
|
||||||
pass
|
pass
|
||||||
|
|
||||||
try:
|
try:
|
||||||
addr = "http://localhost:%d" % (int(sys.argv[1]) if len(sys.argv) > 1 else 8776)
|
addr = "http://localhost:%d" % (int(sys.argv[1]) if len(sys.argv) > 1 else XMLRPC_SERVER_PORT)
|
||||||
print "[i] Starting debug XML-RPC client to '%s'..." % addr
|
print "[i] Starting debug XML-RPC client to '%s'..." % addr
|
||||||
|
|
||||||
server = xmlrpclib.ServerProxy(addr)
|
server = xmlrpclib.ServerProxy(addr)
|
||||||
print "[i] Available RPC methods: %s" % str(server.system.listMethods()).strip("[]")
|
print "[i] Available RPC methods: %s" % str(server.system.listMethods()).strip("[]")
|
||||||
print "[i] Server instance name: 'server'"
|
print "[i] Server instance name: 'server'"
|
||||||
|
|
Loading…
Reference in New Issue
Block a user