mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-12-06 20:51:31 +00:00
Fix for raw_input raising EOFError and KeyboardInterrupt on Ctrl-C (Windows platform)
This commit is contained in:
@@ -785,6 +785,7 @@ def readInput(message, default=None, checkBatch=True):
|
||||
try:
|
||||
data = raw_input() or default
|
||||
except:
|
||||
time.sleep(0.05) # Reference: http://www.gossamer-threads.com/lists/python/python/781893
|
||||
kb.prependFlag = True
|
||||
raise sqlmapUserQuitException
|
||||
finally:
|
||||
|
||||
Reference in New Issue
Block a user