mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-23 01:56:36 +03:00
making it easier for totally dummy users
This commit is contained in:
parent
bec2c04671
commit
8b7a3c5a6b
|
@ -1418,13 +1418,21 @@ def __useWizardInterface():
|
||||||
|
|
||||||
logger.info("starting wizard interface")
|
logger.info("starting wizard interface")
|
||||||
|
|
||||||
while not conf.url:
|
while True:
|
||||||
message = "Please enter full target URL (-u): "
|
while not conf.url:
|
||||||
conf.url = readInput(message, default=None)
|
message = "Please enter full target URL (-u): "
|
||||||
|
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 any(filter(lambda x: '=' in str(x), [conf.url, conf.data])):
|
||||||
|
break
|
||||||
|
else:
|
||||||
|
conf.url = conf.data = None
|
||||||
|
warnMsg = "no testable parameter(s) found "
|
||||||
|
warnMsg += "(e.g. GET parameter 'id' in 'www.site.com/index.php?id=1')"
|
||||||
|
logger.critical(warnMsg)
|
||||||
choice = None
|
choice = None
|
||||||
|
|
||||||
while choice is None or choice not in ("", "1", "2", "3"):
|
while choice is None or choice not in ("", "1", "2", "3"):
|
||||||
|
|
Loading…
Reference in New Issue
Block a user