Skip to content

Instantly share code, notes, and snippets.

@jfrantz1-r7
Created September 20, 2018 22:01
Show Gist options
  • 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