Skip to content

Instantly share code, notes, and snippets.

View WitherOrNot's full-sized avatar
🤠
yeehaw

WitherOrNot

🤠
yeehaw
View GitHub Profile
@WitherOrNot
WitherOrNot / virp.py
Created December 18, 2020 05:53
Implement VIRP table for any configuration of resistors in a circuit
from gmpy2 import mpfr
from rich.console import Console
from rich.table import Table
class Resistor:
def __init__(self, resistance):
self.resistance = mpfr(resistance)
class Circuit:
def __init__(self, *wires):
@WitherOrNot
WitherOrNot / pixelcanvas.py
Created February 23, 2021 21:35
pixelcanvas bot
#!/usr/bin/env python3
import sys
import numpy as np
from time import sleep
from PIL import Image
from requests import session
colors = [
(255, 255, 255),
@WitherOrNot
WitherOrNot / c2rdl.py
Last active May 10, 2023 20:38
office click-to-run (c2r) downloader
#!/usr/bin/env python3
from bs4 import BeautifulSoup
from requests import head, get
from os import remove
from subprocess import run
from argparse import ArgumentParser
from platform import architecture
from shutil import copy
@WitherOrNot
WitherOrNot / nusdl.py
Last active May 14, 2023 20:11
Download games from Wii U NUS
#!/usr/bin/env python3
import struct
import subprocess
import os
import base64
import shutil
import argparse
import binascii
import requests
@WitherOrNot
WitherOrNot / nusdecrypt.py
Last active May 14, 2023 20:11
Decrypt Wii U NUS downloads for Loadiine/emulator
#!/usr/bin/env python3
from struct import pack, unpack, calcsize
from Crypto.Cipher import AES
from Crypto.Hash import SHA1
from binascii import hexlify, unhexlify
from io import BytesIO
from os.path import join
from os import makedirs
import sys
@WitherOrNot
WitherOrNot / nfs2iso.py
Last active May 14, 2023 20:11
Convert WiiU Wii VC games into playable Wii ISOs
#!/usr/bin/env python3
from struct import pack, unpack, calcsize
from Crypto.Cipher import AES
from Crypto.Hash import SHA1
from binascii import hexlify, unhexlify
from os.path import join, exists
from os import makedirs, remove
import sys
@WitherOrNot
WitherOrNot / wiiu_keygen.py
Created January 18, 2022 23:12
Generate titlekeys for WiiU games
from hashlib import pbkdf2_hmac
from binascii import hexlify, unhexlify
from Crypto.Hash import MD5
import sys
SECRET = b'\xfd\x04\x01\x05\x06\x0b\x11\x1c-I'
def hexify(s):
return hexlify(s).decode("utf-8")
@WitherOrNot
WitherOrNot / nice_boat.py
Created January 20, 2022 23:31
nice boat
from struct import unpack, calcsize
from zlib import decompress
from io import BytesIO
from os import makedirs, scandir
from os.path import dirname, join
PACKS_PATH = r"u either know it or u dont"
def readint(f, type="I"):
return unpack(f"<{type}", f.read(calcsize(type)))[0]
@WitherOrNot
WitherOrNot / creativemode.py
Last active May 10, 2023 21:12
"special" minecraft bedrock launcher
from subprocess import run, Popen, PIPE
from psutil import Process
from time import sleep
from tempfile import NamedTemporaryFile
import sys
import re
import ctypes
enable_reg = br"""Windows Registry Editor Version 5.00
@WitherOrNot
WitherOrNot / illager.py
Created August 7, 2022 02:38
archive mc marketplace. needs entitytoken in token.txt and device id in script, can be gotten from running fiddler on mcbedrock w/ owner acct logged in
from base64 import b64decode, b64encode
from binascii import hexlify
from requests import post, get
from json import loads, dumps
from Crypto.Cipher import AES
from os import makedirs
from os.path import join, exists, dirname
from zipfile import ZipFile
from io import BytesIO