Skip to content

Commit 12c472c

Browse files
committed
Fixes #5404
1 parent 037a07d commit 12c472c

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

lib/core/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
from thirdparty.six import unichr as _unichr
2121

2222
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
23-
VERSION = "1.7.4.10"
23+
VERSION = "1.7.4.11"
2424
TYPE = "dev" if VERSION.count('.') > 2 and VERSION.split('.')[-1] != '0' else "stable"
2525
TYPE_COLORS = {"dev": 33, "stable": 90, "pip": 34}
2626
VERSION_STRING = "sqlmap/%s#%s" % ('.'.join(VERSION.split('.')[:-1]) if VERSION.count('.') > 2 and VERSION.split('.')[-1] == '0' else VERSION, TYPE)

sqlmap.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -472,6 +472,11 @@ def main():
472472
logger.critical(errMsg)
473473
raise SystemExit
474474

475+
elif all(_ in excMsg for _ in ("FileNotFoundError: [Errno 2] No such file or directory", "cwd = os.getcwd()")):
476+
errMsg = "invalid runtime environment ('%s')" % excMsg.split("Error: ")[-1].strip()
477+
logger.critical(errMsg)
478+
raise SystemExit
479+
475480
elif all(_ in excMsg for _ in ("PermissionError: [WinError 5]", "multiprocessing")):
476481
errMsg = "there is a permission problem in running multiprocessing on this system. "
477482
errMsg += "Please rerun with '--disable-multi'"

0 commit comments

Comments
 (0)