From d300f99b0b8ebccb500d65e61e126a6d8ffd34f0 Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Fri, 1 Aug 2014 13:57:07 +0200 Subject: [PATCH] Removing a redundant code (similar check is being done upper in code) --- lib/core/option.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/core/option.py b/lib/core/option.py index 6f09d5b16..332fd5d3d 100644 --- a/lib/core/option.py +++ b/lib/core/option.py @@ -2168,8 +2168,8 @@ def _basicOptionValidation(): errMsg = "maximum number of used threads is %d avoiding potential connection issues" % MAX_NUMBER_OF_THREADS raise SqlmapSyntaxException(errMsg) - if conf.forms and not any((conf.url, conf.bulkFile, conf.sitemapUrl)): - errMsg = "switch '--forms' requires usage of option '-u' ('--url'), '-m' or '-x'" + if conf.forms and not any((conf.url, conf.googleDork, conf.bulkFile, conf.sitemapUrl)): + errMsg = "switch '--forms' requires usage of option '-u' ('--url'), '-g', '-m' or '-x'" raise SqlmapSyntaxException(errMsg) if conf.requestFile and conf.url and conf.url != DUMMY_URL: