mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-12-08 05:31:32 +00:00
This %TEMP% is a mere cause of problems (e.g. --os-cmd in MSSQL the BULK INSERT with '%TEMP%\foo' does not work), stick with C:/WINDOWS/Temp
This commit is contained in:
@@ -51,10 +51,7 @@ class Miscellaneous:
|
|||||||
def getRemoteTempPath(self):
|
def getRemoteTempPath(self):
|
||||||
if not conf.tmpPath:
|
if not conf.tmpPath:
|
||||||
if kb.os == "Windows":
|
if kb.os == "Windows":
|
||||||
if kb.dbms == "Microsoft SQL Server":
|
conf.tmpPath = "C:/WINDOWS/Temp"
|
||||||
conf.tmpPath = "%TEMP%"
|
|
||||||
else:
|
|
||||||
conf.tmpPath = "C:/WINDOWS/Temp"
|
|
||||||
else:
|
else:
|
||||||
conf.tmpPath = "/tmp"
|
conf.tmpPath = "/tmp"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user