Skip to content

Commit 43fba39

Browse files
committed
Fixes #5131
1 parent afdaba7 commit 43fba39

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

lib/core/option.py

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2839,10 +2839,13 @@ def _basicOptionValidation():
28392839
else:
28402840
conf.encoding = _
28412841

2842-
if conf.loadCookies:
2843-
if not os.path.exists(conf.loadCookies):
2844-
errMsg = "cookies file '%s' does not exist" % conf.loadCookies
2845-
raise SqlmapFilePathException(errMsg)
2842+
if conf.fileWrite and not os.path.isfile(conf.fileWrite):
2843+
errMsg = "file '%s' does not exist" % os.path.abspath(conf.fileWrite)
2844+
raise SqlmapFilePathException(errMsg)
2845+
2846+
if conf.loadCookies and not os.path.exists(conf.loadCookies):
2847+
errMsg = "cookies file '%s' does not exist" % os.path.abspath(conf.loadCookies)
2848+
raise SqlmapFilePathException(errMsg)
28462849

28472850
def initOptions(inputOptions=AttribDict(), overrideOptions=False):
28482851
_setConfAttributes()

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.6.11"
23+
VERSION = "1.6.6.12"
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)

0 commit comments

Comments
 (0)