mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-05-14 09:29:26 +00:00
Fixes #2489
This commit is contained in:
parent
46c7c28919
commit
c8a0c525fc
3 changed files with 9 additions and 9 deletions
|
|
@ -334,8 +334,13 @@ def start():
|
|||
continue
|
||||
|
||||
message += "\ndo you want to test this form? [Y/n/q] "
|
||||
choice = readInput(message, default='Y').strip().upper()
|
||||
|
||||
if readInput(message, default='Y', boolean=True):
|
||||
if choice == 'N':
|
||||
continue
|
||||
elif choice == 'Q':
|
||||
break
|
||||
else:
|
||||
if conf.method != HTTPMETHOD.GET:
|
||||
message = "Edit %s data [default: %s]%s: " % (conf.method, urlencode(conf.data) if conf.data else "None", " (Warning: blank fields detected)" if conf.data and extractRegexResult(EMPTY_FORM_FIELDS_REGEX, conf.data) else "")
|
||||
conf.data = readInput(message, default=conf.data)
|
||||
|
|
@ -353,11 +358,6 @@ def start():
|
|||
|
||||
parseTargetUrl()
|
||||
|
||||
elif test[0] in ("n", "N"):
|
||||
continue
|
||||
elif test[0] in ("q", "Q"):
|
||||
break
|
||||
|
||||
else:
|
||||
message += "\ndo you want to test this URL? [Y/n/q]"
|
||||
choice = readInput(message, default='Y').strip().upper()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue