mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-25 11:03:47 +03:00
trying some more encoding as the file wasnt exactly the same - issue #742
This commit is contained in:
parent
9c583bc96e
commit
3ec37b14a6
|
@ -184,7 +184,8 @@ class Filesystem(GenericFilesystem):
|
||||||
$Content = [System.Convert]::FromBase64String("%s")
|
$Content = [System.Convert]::FromBase64String("%s")
|
||||||
Set-Content -Path %s -Value $Content -Encoding Byte
|
Set-Content -Path %s -Value $Content -Encoding Byte
|
||||||
""" % (encodedFileContent, randPSScriptPath)
|
""" % (encodedFileContent, randPSScriptPath)
|
||||||
psString = binToHexQuery.replace(" ", "").replace("\n", ";")
|
|
||||||
|
psString = psString.replace(" ", "").replace("\n", ";")
|
||||||
|
|
||||||
logger.debug("uploading the PowerShell script to %s, please wait.." % randPSScriptPath)
|
logger.debug("uploading the PowerShell script to %s, please wait.." % randPSScriptPath)
|
||||||
self.xpCmdshellWriteFile(psString, tmpPath, randPSScript)
|
self.xpCmdshellWriteFile(psString, tmpPath, randPSScript)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user