Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dc2bbbe commit b55555eCopy full SHA for b55555e
1 file changed
lib/utils/api.py
@@ -48,7 +48,7 @@
48
# Local global variables
49
adminid = ""
50
db = None
51
-db_filepath = tempfile.mkstemp(prefix="sqlmapipc-", text=False)[1]
+db_filepath = None
52
tasks = dict()
53
54
# API objects
@@ -553,6 +553,7 @@ def server(host="0.0.0.0", port=RESTAPI_SERVER_PORT):
553
global db_filepath
554
555
adminid = hexencode(os.urandom(16))
556
+ db_filepath = tempfile.mkstemp(prefix="sqlmapipc-", text=False)[1]
557
558
logger.info("Running REST-JSON API server at '%s:%d'.." % (host, port))
559
logger.info("Admin ID: %s" % adminid)
0 commit comments