Skip to content

Instantly share code, notes, and snippets.

View sysopfb's full-sized avatar

sysopfb

View GitHub Profile
@sysopfb
sysopfb / certs.txt
Last active September 25, 2016 19:20 — forked from crazybyte/certs.txt
NOTE: HTTP SSL keys are all in PEM format (base64 encoded)
#From PEM format to DER
openssl x509 -in $1.crt -out $1.der -outform DER
#From DER format to PEM
openssl x509 -in $1.der -inform DER -out $1.pem -outform PEM
#Transforming RSA key to DER format
openssl rsa -in oberon.key -inform PEM -out oberon_key.der -outform DER
@sysopfb
sysopfb / wcr.py
Last active August 17, 2021 10:13 — forked from mak/wcr.py
Extract everything from WannaCry
import re
import os,sys
import pefile
import struct
import zipfile
import hashlib
import StringIO
from Crypto import Random
from Crypto.PublicKey import RSA
from Crypto.Cipher import PKCS1_v1_5,AES