Skip to content

Instantly share code, notes, and snippets.

View WitherOrNot's full-sized avatar
🤠
yeehaw

WitherOrNot

🤠
yeehaw
View GitHub Profile
@WitherOrNot
WitherOrNot / mclauncher_offline.py
Created March 22, 2023 10:03
Offline minecraft downloader/launcher
#!/usr/bin/env python3
import requests
import platform
import sys
import os
import lzma
import shlex
import json
from datetime import datetime
@WitherOrNot
WitherOrNot / switch_su_dl.py
Created May 16, 2023 18:20
Switch Firmware Downloader. Needs hactool in same directory, decrypted PRODINFO.bin and prod.keys in "keys" directory
from Crypto.PublicKey import RSA
from anynet import tls
from struct import unpack, calcsize
from binascii import hexlify, unhexlify
from requests import request
from os import makedirs, remove
from subprocess import run, PIPE
from os.path import basename, exists
from shutil import rmtree
from glob import glob
@WitherOrNot
WitherOrNot / winxp_act.ipynb
Created June 2, 2023 07:25
All the code you need to activate Windows XP w/o WPA bypasses
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@WitherOrNot
WitherOrNot / parse_dpcdll.py
Last active October 15, 2023 04:12
Parse DPCDLL.DLL to get PIDs for key generation (x86/x64 Windows XP and derivatives only)
from glob import glob
from struct import unpack
import json
import sys
def readint(f):
return unpack("<I", f.read(4))[0]
if __name__ == "__main__":
if len(sys.argv) < 3:
@WitherOrNot
WitherOrNot / wsrv_x64_lh_act.ipynb
Last active April 14, 2024 19:55
Keygen for x64 winxp/server 2003/longhorn
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@WitherOrNot
WitherOrNot / bink_from_json.py
Created June 10, 2023 04:41
Create BINK file from keys.json in WindowsXPKg
from struct import pack
from json import loads
import sys
def i2b(n, b, o="little"):
return int(n).to_bytes(b, byteorder=o)
def b2i(b, o="little"):
return int.from_bytes(b, byteorder=o)
@WitherOrNot
WitherOrNot / confid.ipynb
Last active April 5, 2025 22:28
Extended Confirmation ID generation for Windows and non-Windows products
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@WitherOrNot
WitherOrNot / mpc_index.py
Created August 8, 2023 01:23
index mpcs of office 2007 copies
import re
from glob import glob
from subprocess import run, PIPE
from os.path import basename
from os import remove
from shutil import rmtree
def text_scan(text, pattern, flags=0):
return re.findall(pattern, text, re.MULTILINE | re.IGNORECASE)
@WitherOrNot
WitherOrNot / parse_pubkey.py
Last active September 2, 2023 22:24
Parse PIDGENX public keys
from struct import pack, unpack, calcsize
from json import dumps
from os.path import basename
import sys
def readint(f):
return unpack("<I", f.read(4))[0]
def readstc(f, s):
s = "<" + s
@WitherOrNot
WitherOrNot / pidgenx.ipynb
Last active February 16, 2025 03:27
PIDGENX validation implementation in SageMath (works on SageMath 9.0)
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.