File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1453,6 +1453,8 @@ def setPaths(rootPath):
14531453 paths .SQLMAP_HOME_PATH = os .path .expandvars ("%USERPROFILE%\\ Local Settings\\ sqlmap" )
14541454 else :
14551455 paths .SQLMAP_HOME_PATH = os .path .join (os .path .expandvars (os .path .expanduser ("~" )), "sqlmap" )
1456+ elif "XDG_DATA_HOME" in os .environ :
1457+ paths .SQLMAP_HOME_PATH = os .path .join (os .environ ["XDG_DATA_HOME" ], "sqlmap" )
14561458 else :
14571459 paths .SQLMAP_HOME_PATH = os .path .join (os .path .expandvars (os .path .expanduser ("~" )), ".sqlmap" )
14581460
Original file line number Diff line number Diff line change 1818from thirdparty .six import unichr as _unichr
1919
2020# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
21- VERSION = "1.4.5.12 "
21+ VERSION = "1.4.5.13 "
2222TYPE = "dev" if VERSION .count ('.' ) > 2 and VERSION .split ('.' )[- 1 ] != '0' else "stable"
2323TYPE_COLORS = {"dev" : 33 , "stable" : 90 , "pip" : 34 }
2424VERSION_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