mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-28 20:43:49 +03:00
working on #742 - code cleanup
This commit is contained in:
parent
94c09019fd
commit
563c73c4c7
|
@ -175,8 +175,6 @@ class Filesystem(GenericFilesystem):
|
||||||
print "dFile:", dFile
|
print "dFile:", dFile
|
||||||
print "fileType:", fileType
|
print "fileType:", fileType
|
||||||
|
|
||||||
randFile = "tmpf%s.txt" % randomStr(lowercase=True)
|
|
||||||
randFilePath = "%s\%s" % (tmpPath, randFile)
|
|
||||||
encodedFileContent = base64encode(wFileContent)
|
encodedFileContent = base64encode(wFileContent)
|
||||||
|
|
||||||
# TODO: need to be fixed
|
# TODO: need to be fixed
|
||||||
|
@ -186,10 +184,7 @@ class Filesystem(GenericFilesystem):
|
||||||
|
|
||||||
logger.debug("converting the base64-encoded file utilizing PowerShell")
|
logger.debug("converting the base64-encoded file utilizing PowerShell")
|
||||||
|
|
||||||
commands = ("cd \"%s\"" % tmpPath,
|
commands = ("cd \"%s\"" % tmpPath, "powershell -EncodedCommand %s" % base64encode(psString))
|
||||||
"powershell -EncodedCommand %s" % base64encode(psString))
|
|
||||||
# "powershell -EncodedCommand %s" % base64encode(psString),
|
|
||||||
# "del /F /Q %s" % randFilePath)
|
|
||||||
complComm = " & ".join(command for command in commands)
|
complComm = " & ".join(command for command in commands)
|
||||||
|
|
||||||
self.execCmd(complComm)
|
self.execCmd(complComm)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user