mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-22 09:36:35 +03:00
Use %TEMP% environment variable as temporary directory (--tmp-path overwrites this btw) folder with direct connection (-d). Via SQL injection, env variables do not work apparently
This commit is contained in:
parent
08bf8c201f
commit
f55ad46119
|
@ -39,6 +39,9 @@ class Miscellaneous:
|
|||
def getRemoteTempPath(self):
|
||||
if not conf.tmpPath:
|
||||
if Backend.isOs(OS.WINDOWS):
|
||||
if conf.direct:
|
||||
conf.tmpPath = "%TEMP%"
|
||||
else:
|
||||
self.checkDbmsOs(detailed=True)
|
||||
|
||||
if Backend.getOsVersion() in ("2000", "NT"):
|
||||
|
|
Loading…
Reference in New Issue
Block a user