From 819085155ed99b246531275eb878cc7b379cab16 Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Mon, 15 Nov 2010 12:07:13 +0000 Subject: [PATCH] minor update/fix --- lib/core/option.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/lib/core/option.py b/lib/core/option.py index c81db8732..42d0a6b8b 100644 --- a/lib/core/option.py +++ b/lib/core/option.py @@ -23,6 +23,7 @@ import urlparse from extra.clientform.clientform import ParseResponse from extra.keepalive import keepalive from extra.xmlobject import xmlobject +from lib.controller.checks import checkConnection from lib.core.common import getConsoleWidth from lib.core.common import getFileItems from lib.core.common import getFileType @@ -349,6 +350,12 @@ def __setGoogleDorking(): raise sqlmapGenericException, errMsg def __findPageForms(): + if not conf.forms: + return + + if not checkConnection(): + return + infoMsg = "searching for forms" logger.info(infoMsg) @@ -1332,8 +1339,8 @@ def init(inputOptions=advancedDict()): __setSafeUrl() __setUnionTech() __setGoogleDorking() - __findPageForms() __urllib2Opener() + __findPageForms() __setDBMS() __setThreads()