We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4ee0495 commit 08d733cCopy full SHA for 08d733c
sqlmap.py
@@ -12,6 +12,7 @@
12
import re
13
import shutil
14
import sys
15
+import thread
16
import time
17
import traceback
18
import warnings
@@ -109,7 +110,15 @@ def main():
109
110
elif conf.liveTest:
111
liveTest()
112
else:
- start()
113
+ try:
114
+ start()
115
+ except thread.error as ex:
116
+ if "can't start new thread" in getSafeExString(ex):
117
+ errMsg = "unable to start new threads. Please check OS (u)limits"
118
+ logger.critical(errMsg)
119
+ raise SystemExit
120
+ else:
121
+ raise
122
123
except SqlmapUserQuitException:
124
errMsg = "user quit"
@@ -130,7 +139,6 @@ def main():
130
139
logger.critical(errMsg)
131
140
except KeyboardInterrupt:
132
141
pass
133
-
134
142
raise SystemExit
135
143
136
144
0 commit comments