mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-02-16 19:40:37 +03:00
added some fancy Ctrl+C when having multiple targets
This commit is contained in:
parent
0e895fa512
commit
44435adc4a
|
@ -302,6 +302,20 @@ def start():
|
|||
except sqlmapSilentQuitException:
|
||||
raise
|
||||
|
||||
except KeyboardInterrupt:
|
||||
warnMsg = "Ctrl+C detected"
|
||||
logger.warn(warnMsg)
|
||||
|
||||
message = "\ndo you want to skip to the next target in list [Y/n/q]"
|
||||
test = readInput(message, default="Y")
|
||||
|
||||
if not test or test[0] in ("y", "Y"):
|
||||
pass
|
||||
elif test[0] in ("n", "N"):
|
||||
return False
|
||||
elif test[0] in ("q", "Q"):
|
||||
raise sqlmapUserQuitException
|
||||
|
||||
except sqlmapUserQuitException:
|
||||
raise
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user