Skip to content

Instantly share code, notes, and snippets.

@ppisarczyk
Forked from mattifestation/drop_binary.bat
Created August 27, 2016 03:51
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 ppisarczyk/cd3c58cb5a6357faf12d47aaf4d43063 to your computer and use it in GitHub Desktop.
Save ppisarczyk/cd3c58cb5a6357faf12d47aaf4d43063 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