Skip to content

Instantly share code, notes, and snippets.

@jfrantz1-r7
Created September 20, 2018 22:01
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jfrantz1-r7/f5f3802954c9cef9ad61efa60150232a to your computer and use it in GitHub Desktop.
Save jfrantz1-r7/f5f3802954c9cef9ad61efa60150232a to your computer and use it in GitHub Desktop.
$String = Really malicious code that will blow your computer up
$GetBytes = [System.Text.Encoding]::Unicode.GetBytes($Text)
$EncodedString =[Convert]::ToBase64String($Bytes)
$EncodedString
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment