certutil - CraigDonkin/Infrastructure GitHub Wiki

certutil

https://docs.microsoft.com/en-us/windows-server/administration/windows-commands/certutil#-urlcache

Check or generate a hash

certUtil -hashfile /path/to/file.file [algo]
  • MD2
  • MD4
  • MD5
  • SHA1
  • SHA256
  • SHA384
  • SHA512

Parse a Certificate

certUtil blah.cer
certUtil blah.crl

Parse a certificate from windows cert store

certutil -v -user -store my "store"

Bas64 encode Files

certutil -encode input output
certutil -decode input output

Download files

certutil.exe -urlcache -split 0f "http://path/to/download.exe" output.exe