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():
2839
2839
else :
2840
2840
conf .encoding = _
2841
2841
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 )
2846
2849
2847
2850
def initOptions (inputOptions = AttribDict (), overrideOptions = False ):
2848
2851
_setConfAttributes ()
Original file line number Diff line number Diff line change 20
20
from thirdparty .six import unichr as _unichr
21
21
22
22
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
23
- VERSION = "1.6.6.11 "
23
+ VERSION = "1.6.6.12 "
24
24
TYPE = "dev" if VERSION .count ('.' ) > 2 and VERSION .split ('.' )[- 1 ] != '0' else "stable"
25
25
TYPE_COLORS = {"dev" : 33 , "stable" : 90 , "pip" : 34 }
26
26
VERSION_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