mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-06-18 20:13:34 +03:00
minor bug fix
This commit is contained in:
parent
dc2bbbeaa7
commit
b55555e4e5
|
@ -48,7 +48,7 @@ RESTAPI_SERVER_PORT = 8775
|
||||||
# Local global variables
|
# Local global variables
|
||||||
adminid = ""
|
adminid = ""
|
||||||
db = None
|
db = None
|
||||||
db_filepath = tempfile.mkstemp(prefix="sqlmapipc-", text=False)[1]
|
db_filepath = None
|
||||||
tasks = dict()
|
tasks = dict()
|
||||||
|
|
||||||
# API objects
|
# API objects
|
||||||
|
@ -553,6 +553,7 @@ def server(host="0.0.0.0", port=RESTAPI_SERVER_PORT):
|
||||||
global db_filepath
|
global db_filepath
|
||||||
|
|
||||||
adminid = hexencode(os.urandom(16))
|
adminid = hexencode(os.urandom(16))
|
||||||
|
db_filepath = tempfile.mkstemp(prefix="sqlmapipc-", text=False)[1]
|
||||||
|
|
||||||
logger.info("Running REST-JSON API server at '%s:%d'.." % (host, port))
|
logger.info("Running REST-JSON API server at '%s:%d'.." % (host, port))
|
||||||
logger.info("Admin ID: %s" % adminid)
|
logger.info("Admin ID: %s" % adminid)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user