mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-22 01:26:42 +03:00
Fixes #1709
This commit is contained in:
parent
4ee0495352
commit
08d733cf02
12
sqlmap.py
12
sqlmap.py
|
@ -12,6 +12,7 @@ import os
|
||||||
import re
|
import re
|
||||||
import shutil
|
import shutil
|
||||||
import sys
|
import sys
|
||||||
|
import thread
|
||||||
import time
|
import time
|
||||||
import traceback
|
import traceback
|
||||||
import warnings
|
import warnings
|
||||||
|
@ -109,7 +110,15 @@ def main():
|
||||||
elif conf.liveTest:
|
elif conf.liveTest:
|
||||||
liveTest()
|
liveTest()
|
||||||
else:
|
else:
|
||||||
start()
|
try:
|
||||||
|
start()
|
||||||
|
except thread.error as ex:
|
||||||
|
if "can't start new thread" in getSafeExString(ex):
|
||||||
|
errMsg = "unable to start new threads. Please check OS (u)limits"
|
||||||
|
logger.critical(errMsg)
|
||||||
|
raise SystemExit
|
||||||
|
else:
|
||||||
|
raise
|
||||||
|
|
||||||
except SqlmapUserQuitException:
|
except SqlmapUserQuitException:
|
||||||
errMsg = "user quit"
|
errMsg = "user quit"
|
||||||
|
@ -130,7 +139,6 @@ def main():
|
||||||
logger.critical(errMsg)
|
logger.critical(errMsg)
|
||||||
except KeyboardInterrupt:
|
except KeyboardInterrupt:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
raise SystemExit
|
raise SystemExit
|
||||||
|
|
||||||
except KeyboardInterrupt:
|
except KeyboardInterrupt:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user