Skip to content

Commit bae7766

Browse files
committed
Support patch for sqlmapproject#4486
1 parent 9c95445 commit bae7766

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-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.4.12.28"
21+
VERSION = "1.4.12.29"
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: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -326,6 +326,12 @@ def main():
326326
logger.critical(errMsg)
327327
raise SystemExit
328328

329+
elif "Permission denied: '" in excMsg:
330+
match = re.search(r"Permission denied: '([^']*)", excMsg)
331+
errMsg = "permission error occurred while accessing file '%s'" % match.group(1)
332+
logger.critical(errMsg)
333+
raise SystemExit
334+
329335
elif all(_ in excMsg for _ in ("twophase", "sqlalchemy")):
330336
errMsg = "please update the 'sqlalchemy' package (>= 1.1.11) "
331337
errMsg += "(Reference: 'https://qiita.com/tkprof/items/7d7b2d00df9c5f16fffe')"

0 commit comments

Comments
 (0)