mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-26 11:33:47 +03:00
modification of temporary directory from C:/Windows/Temp to %TEMP%
This commit is contained in:
parent
2fdac83607
commit
2323d858a9
|
@ -160,7 +160,7 @@ class Filesystem(GenericFilesystem):
|
||||||
|
|
||||||
logger.debug("moving binary file %s to %s" % (sFile, dFile))
|
logger.debug("moving binary file %s to %s" % (sFile, dFile))
|
||||||
|
|
||||||
commands = ("cd %s" % tmpPath,
|
commands = ("cd \"%s\"" % tmpPath,
|
||||||
"ren %s %s" % (chunkName, dFileName),
|
"ren %s %s" % (chunkName, dFileName),
|
||||||
"move /Y %s %s" % (dFileName, dFile))
|
"move /Y %s %s" % (dFileName, dFile))
|
||||||
complComm = " & ".join(command for command in commands)
|
complComm = " & ".join(command for command in commands)
|
||||||
|
|
|
@ -211,7 +211,7 @@ class Filesystem:
|
||||||
|
|
||||||
for scrLine in fileScrLines:
|
for scrLine in fileScrLines:
|
||||||
forgedScrLine = "echo %s " % scrLine
|
forgedScrLine = "echo %s " % scrLine
|
||||||
forgedScrLine += ">> %s\%s" % (tmpPath, randScr)
|
forgedScrLine += ">> \"%s\%s\"" % (tmpPath, randScr)
|
||||||
forgedScrLines.append(forgedScrLine)
|
forgedScrLines.append(forgedScrLine)
|
||||||
|
|
||||||
for forgedScrLine in forgedScrLines:
|
for forgedScrLine in forgedScrLines:
|
||||||
|
|
|
@ -65,7 +65,7 @@ class Miscellaneous:
|
||||||
#logger.info(infoMsg)
|
#logger.info(infoMsg)
|
||||||
#
|
#
|
||||||
#conf.tmpPath = self.evalCmd("echo %TEMP%")
|
#conf.tmpPath = self.evalCmd("echo %TEMP%")
|
||||||
conf.tmpPath = "C:/WINDOWS/Temp"
|
conf.tmpPath = "%TEMP%"
|
||||||
else:
|
else:
|
||||||
conf.tmpPath = "/tmp"
|
conf.tmpPath = "/tmp"
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user