File tree Expand file tree Collapse file tree 2 files changed +8
-5
lines changed Expand file tree Collapse file tree 2 files changed +8
-5
lines changed Original file line number Diff line number Diff 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
28472850def initOptions (inputOptions = AttribDict (), overrideOptions = False ):
28482851 _setConfAttributes ()
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.6.11 "
23+ VERSION = "1.6.6.12 "
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 )
You can’t perform that action at this time.
0 commit comments