From 4fa2f400ec99d61d19ea8af6efab54be179edf90 Mon Sep 17 00:00:00 2001 From: Bernardo Damele Date: Fri, 14 Dec 2012 15:55:30 +0000 Subject: [PATCH] minor fix --- lib/utils/restapi.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/utils/restapi.py b/lib/utils/restapi.py index 8b78ad612..cbbfc7b11 100644 --- a/lib/utils/restapi.py +++ b/lib/utils/restapi.py @@ -258,7 +258,7 @@ def restAPIsetup(host="0.0.0.0", port=RESTAPI_SERVER_PORT): global tasks adminid = hexencode(os.urandom(16)) options[adminid] = AttribDict(cmdLineOptions) - options[taskid]["oDir"] = tempfile.mkdtemp(prefix="sqlmap-") + options[adminid]["oDir"] = tempfile.mkdtemp(prefix="sqlmap-") tasks.append(adminid) logger.info("Running REST-JSON API server at '%s:%d'.." % (host, port)) logger.info("The admin task ID is: %s" % adminid)