From 912323c12dee098d6e67e402d215eebd184f173c Mon Sep 17 00:00:00 2001 From: Bernardo Damele Date: Thu, 20 Dec 2012 17:05:44 +0000 Subject: [PATCH] minor bug fix (#297) --- lib/core/optiondict.py | 9 +++++++++ lib/utils/api.py | 4 +--- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/lib/core/optiondict.py b/lib/core/optiondict.py index 3ef2db6a4..ba6b98c3e 100644 --- a/lib/core/optiondict.py +++ b/lib/core/optiondict.py @@ -209,4 +209,13 @@ optDict = { "wizard": "boolean", "verbose": "integer" }, + "Hidden": { + "profile": "boolean", + "cpuThrottle": "integer", + "forceDns": "boolean", + "smokeTest": "boolean", + "liveTest": "boolean", + "stopFail": "boolean", + "runCase": "string" + } } diff --git a/lib/utils/api.py b/lib/utils/api.py index 3c94e19fc..ab7837ab2 100644 --- a/lib/utils/api.py +++ b/lib/utils/api.py @@ -61,7 +61,7 @@ def is_admin(taskid): return True def init_options(): - dataype = {"boolean": False, "string": "", "integer": 0, "float": 0.0} + dataype = {"boolean": False, "string": None, "integer": None, "float": None} options = AttribDict() for _ in optDict: @@ -260,8 +260,6 @@ def scan_start(taskid): for key, value in request.json.items(): tasks[taskid][key] = value - print "DEBUG TASKS:", tasks - # Overwrite output directory (oDir) value to a temporary directory tasks[taskid].oDir = tempfile.mkdtemp(prefix="sqlmap-")