Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f09072b

Browse files
committed
Fixes #1853
1 parent be9381a commit f09072b

2 files changed

Lines changed: 10 additions & 1 deletion

File tree

lib/core/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
from lib.core.revision import getRevisionNumber
2020

2121
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
22-
VERSION = "1.0.5.15"
22+
VERSION = "1.0.5.16"
2323
REVISION = getRevisionNumber()
2424
STABLE = VERSION.count('.') <= 2
2525
VERSION_STRING = "sqlmap/%s#%s" % (VERSION, "stable" if STABLE else "dev")

sqlmap.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@
4949
from lib.core.option import initOptions
5050
from lib.core.option import init
5151
from lib.core.profiling import profile
52+
from lib.core.settings import IS_WIN
5253
from lib.core.settings import LEGAL_DISCLAIMER
5354
from lib.core.settings import VERSION
5455
from lib.core.testing import smokeTest
@@ -192,6 +193,14 @@ def main():
192193
logger.error(errMsg)
193194
raise SystemExit
194195

196+
elif "can't start new thread" in excMsg:
197+
errMsg = "there has been a problem while creating new thread instance. "
198+
errMsg += "Please make sure that you are not running too many processes"
199+
if not IS_WIN:
200+
errMsg += " (or increase the 'ulimit -u' value)"
201+
logger.error(errMsg)
202+
raise SystemExit
203+
195204
elif all(_ in excMsg for _ in ("pymysql", "configparser")):
196205
errMsg = "wrong initialization of pymsql detected (using Python3 dependencies)"
197206
logger.error(errMsg)

0 commit comments

Comments
 (0)