mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-22 17:46:37 +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))
|
||||
|
||||
commands = ("cd %s" % tmpPath,
|
||||
commands = ("cd \"%s\"" % tmpPath,
|
||||
"ren %s %s" % (chunkName, dFileName),
|
||||
"move /Y %s %s" % (dFileName, dFile))
|
||||
complComm = " & ".join(command for command in commands)
|
||||
|
|
|
@ -211,7 +211,7 @@ class Filesystem:
|
|||
|
||||
for scrLine in fileScrLines:
|
||||
forgedScrLine = "echo %s " % scrLine
|
||||
forgedScrLine += ">> %s\%s" % (tmpPath, randScr)
|
||||
forgedScrLine += ">> \"%s\%s\"" % (tmpPath, randScr)
|
||||
forgedScrLines.append(forgedScrLine)
|
||||
|
||||
for forgedScrLine in forgedScrLines:
|
||||
|
|
|
@ -65,7 +65,7 @@ class Miscellaneous:
|
|||
#logger.info(infoMsg)
|
||||
#
|
||||
#conf.tmpPath = self.evalCmd("echo %TEMP%")
|
||||
conf.tmpPath = "C:/WINDOWS/Temp"
|
||||
conf.tmpPath = "%TEMP%"
|
||||
else:
|
||||
conf.tmpPath = "/tmp"
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user