mirror of
https://github.com/sqlmapproject/sqlmap
synced 2025-12-06 16:32:23 +01:00
minor bug fix
This commit is contained in:
parent
dc2bbbeaa7
commit
b55555e4e5
1 changed files with 2 additions and 1 deletions
|
|
@ -48,7 +48,7 @@ RESTAPI_SERVER_PORT = 8775
|
|||
# Local global variables
|
||||
adminid = ""
|
||||
db = None
|
||||
db_filepath = tempfile.mkstemp(prefix="sqlmapipc-", text=False)[1]
|
||||
db_filepath = None
|
||||
tasks = dict()
|
||||
|
||||
# API objects
|
||||
|
|
@ -553,6 +553,7 @@ def server(host="0.0.0.0", port=RESTAPI_SERVER_PORT):
|
|||
global db_filepath
|
||||
|
||||
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("Admin ID: %s" % adminid)
|
||||
|
|
|
|||
Loading…
Reference in a new issue