Skip to content

Instantly share code, notes, and snippets.

@Kaicastledine
Forked from mattifestation/drop_binary.bat
Created January 25, 2017 11:17
Show Gist options
  • Save Kaicastledine/b5ea30c16d4c0989ade808f06f964ca3 to your computer and use it in GitHub Desktop.
Save Kaicastledine/b5ea30c16d4c0989ade808f06f964ca3 to your computer and use it in GitHub Desktop.
Drop binary data from the command line w/o needing PowerShell
echo -----BEGIN CERTIFICATE----- > encoded.txt
echo Just Base64 encode your binary data
echo TVoAAA== >> encoded.txt
echo -----END CERTIFICATE----- >> encoded.txt
certutil -decode encoded.txt decoded.bin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment