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