Implementation for an Issue #715

This commit is contained in:
Miroslav Stampar 2014-06-08 23:55:15 +02:00
parent dac386735a
commit 5e9334ab79

View File

@ -1734,7 +1734,6 @@ def _useWizardInterface():
logger.info("starting wizard interface") logger.info("starting wizard interface")
while True:
while not conf.url: while not conf.url:
message = "Please enter full target URL (-u): " message = "Please enter full target URL (-u): "
conf.url = readInput(message, default=None) conf.url = readInput(message, default=None)
@ -1742,17 +1741,13 @@ def _useWizardInterface():
message = "POST data (--data) [Enter for None]: " message = "POST data (--data) [Enter for None]: "
conf.data = readInput(message, default=None) conf.data = readInput(message, default=None)
if filter(lambda _: '=' in unicode(_), (conf.url, conf.data)) or '*' in conf.url: if not (filter(lambda _: '=' in unicode(_), (conf.url, conf.data)) or '*' in conf.url):
break
else:
warnMsg = "no GET and/or POST parameter(s) found for testing " warnMsg = "no GET and/or POST parameter(s) found for testing "
warnMsg += "(e.g. GET parameter 'id' in 'http://www.site.com/vuln.php?id=1')" warnMsg += "(e.g. GET parameter 'id' in 'http://www.site.com/vuln.php?id=1'). "
logger.critical(warnMsg) if not conf.crawlDepth and not conf.forms:
warnMsg += "Will search for forms"
if conf.crawlDepth or conf.forms: conf.forms = True
break logger.warn(warnMsg)
else:
conf.url = conf.data = None
choice = None choice = None