Skip to content

Instantly share code, notes, and snippets.

@Faalagorn
Faalagorn / DecryptWindowsProductKey.py
Last active November 8, 2020 22:12 — forked from Spaceghost/DecryptWindowsProductKey.py
A script to decrypt windows product keys written in python
def DecodeKey(rpk):
rpkOffset = 52
i = 28
szPossibleChars = "BCDFGHJKMPQRTVWXY2346789"
szProductKey = ""
while i >= 0:
dwAccumulator = 0
j = 14
while j >= 0: