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

Skip to content

Commit 067c3bc

Browse files
committed
Minor patch (#4950)
1 parent 4d9dbdb commit 067c3bc

2 files changed

Lines changed: 7 additions & 1 deletion

File tree

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.6.1.4"
23+
VERSION = "1.6.1.5"
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: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@
4848
from lib.core.common import checkPipedInput
4949
from lib.core.common import createGithubIssue
5050
from lib.core.common import dataToStdout
51+
from lib.core.common import extractRegexResult
5152
from lib.core.common import filterNone
5253
from lib.core.common import getDaysFromLastUpdate
5354
from lib.core.common import getFileItems
@@ -349,6 +350,11 @@ def main():
349350
logger.critical(errMsg)
350351
raise SystemExit
351352

353+
elif all(_ in excMsg for _ in ("OSError: [Errno 22] Invalid argument: '", "importlib")):
354+
errMsg = "unable to read file '%s'" % extractRegexResult(r"OSError: \[Errno 22\] Invalid argument: '(?P<result>[^']+)", excMsg)
355+
logger.critical(errMsg)
356+
raise SystemExit
357+
352358
elif "hash_randomization" in excMsg:
353359
errMsg = "error occurred at Python interpreter which "
354360
errMsg += "is fixed in 2.7.3. Please update accordingly "

0 commit comments

Comments
 (0)