mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-07-11 19:13:12 +00:00
some optimization
This commit is contained in:
parent
a6310c0b21
commit
b77e2042f2
3 changed files with 16 additions and 9 deletions
|
|
@ -95,13 +95,13 @@ def main():
|
|||
logger.critical(e)
|
||||
closeDumper(False, e)
|
||||
|
||||
except KeyboardInterrupt, _:
|
||||
except KeyboardInterrupt:
|
||||
print
|
||||
errMsg = "user aborted"
|
||||
logger.error(errMsg)
|
||||
closeDumper(False, errMsg)
|
||||
|
||||
except EOFError, _:
|
||||
except EOFError:
|
||||
print
|
||||
errMsg = "exit"
|
||||
logger.error(errMsg)
|
||||
|
|
@ -127,7 +127,10 @@ def main():
|
|||
kb.threadException = True
|
||||
|
||||
if conf.get('hashDB', None):
|
||||
conf.hashDB.flush(True)
|
||||
try:
|
||||
conf.hashDB.flush(True)
|
||||
except KeyboardInterrupt:
|
||||
pass
|
||||
|
||||
# Reference: http://stackoverflow.com/questions/1635080/terminate-a-multi-thread-python-program
|
||||
if hasattr(conf, "threads") and conf.threads > 1:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue