Update Out-EncryptedScriptDropper.ps1

This commit is contained in:
HarmJ0y
2015-09-02 13:10:06 -04:00
parent 2527b11663
commit 3cfe2ce8ed
+1 -1
View File
@@ -29,7 +29,7 @@ function Out-EncryptedScriptDropper {
$r=1..16|ForEach-Object{Get-Random -max 61};
$XORKey=('ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz123456789'[$r] -join '');
$code = (Get-Content -Encoding Ascii -Path $ScriptPath)
$code = (Get-Content -Encoding Ascii -Path $ScriptPath | Out-String)
$code = $code.trim()
# XOR the code with the specified $XORKey