Skip to content

Commit 2380ab1

Browse files
committed
Dummy patch for sqlmapproject#4623
1 parent dd32bfb commit 2380ab1

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
@@ -18,7 +18,7 @@
1818
from thirdparty.six import unichr as _unichr
1919

2020
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
21-
VERSION = "1.5.3.21"
21+
VERSION = "1.5.3.22"
2222
TYPE = "dev" if VERSION.count('.') > 2 and VERSION.split('.')[-1] != '0' else "stable"
2323
TYPE_COLORS = {"dev": 33, "stable": 90, "pip": 34}
2424
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
@@ -435,6 +435,11 @@ def main():
435435
logger.critical(errMsg)
436436
raise SystemExit
437437

438+
elif all(_ in excMsg for _ in ("No such file", "sqlmap.conf", "Test")):
439+
errMsg = "you are trying to run (hidden) development tests inside the production environment"
440+
logger.critical(errMsg)
441+
raise SystemExit
442+
438443
elif all(_ in excMsg for _ in ("HTTPNtlmAuthHandler", "'str' object has no attribute 'decode'")):
439444
errMsg = "package 'python-ntlm' has a known compatibility issue with the "
440445
errMsg += "Python 3 (Reference: 'https://github.com/mullender/python-ntlm/pull/61')"

0 commit comments

Comments
 (0)