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,25 +1734,20 @@ 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)
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 warnMsg = "no GET and/or POST parameter(s) found for testing "
else: warnMsg += "(e.g. GET parameter 'id' in 'http://www.site.com/vuln.php?id=1'). "
warnMsg = "no GET and/or POST parameter(s) found for testing " if not conf.crawlDepth and not conf.forms:
warnMsg += "(e.g. GET parameter 'id' in 'http://www.site.com/vuln.php?id=1')" warnMsg += "Will search for forms"
logger.critical(warnMsg) conf.forms = True
logger.warn(warnMsg)
if conf.crawlDepth or conf.forms:
break
else:
conf.url = conf.data = None
choice = None choice = None