File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2020from 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 "
2424TYPE = "dev" if VERSION .count ('.' ) > 2 and VERSION .split ('.' )[- 1 ] != '0' else "stable"
2525TYPE_COLORS = {"dev" : 33 , "stable" : 90 , "pip" : 34 }
2626VERSION_STRING = "sqlmap/%s#%s" % ('.' .join (VERSION .split ('.' )[:- 1 ]) if VERSION .count ('.' ) > 2 and VERSION .split ('.' )[- 1 ] == '0' else VERSION , TYPE )
Original file line number Diff line number Diff line change 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 "
You can’t perform that action at this time.
0 commit comments