Skip to content

Instantly share code, notes, and snippets.

View knot126's full-sized avatar

Knot the Tails knot126

View GitHub Profile
#!/usr/bin/env python
from pathlib import Path
from sys import argv
# I would rather do a symbol lookup, but this works too :P
uncrackedbytes = bytes([0xF3, 0x0F, 0x1E, 0xFA, 0x41, 0x54, 0x4C, 0x8D, 0x67, 0x58])
patch = b"\xb8\x01\x00\x00\x00\xc3"
binary = Path(argv[1]).read_bytes()
@knot126
knot126 / bcm4321_dell_linux_2023.md
Created October 18, 2023 15:09
How to make dell minicard with BCM4321 work on linux

How to make BCM4321 dell wifi card work on linux

  1. Download this file and extract the .o file: https://github.com/knot126/bcm4321/blob/main/broadcom-wl-6.30.163.46.tar.bz2
  2. Enter a root shell (e.g. sudo su) in the folder where you extracted the .o to
  3. Run b43-fwcutter -w /usr/lib/firmware ./broadcom-wl-6.30.163.46.wl_apsta.o (extracts the firmware to the proper location)
  4. Reboot and the wifi should work
@knot126
knot126 / passthrough.py
Created June 2, 2023 05:56
Awful hack for making Karen's cydia repo work on iOS 5 after SSL errors
"""
Run this locally (make sure firewall is off) and add http://<YOUR-IP>:8000/ to Cydia.
"""
from http.server import BaseHTTPRequestHandler, HTTPServer
import time
import requests
host = "https://cydia.akemi.ai"
serverPort = 8000
eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJ1cm46YXBwOjdlMGQxODg5ODIyNjQzNzNhNWYwZDQxNWVhMGQyNmUwIiwiaXNzIjoidXJuOmFwcDo3ZTBkMTg4OTgyMjY0MzczYTVmMGQ0MTVlYTBkMjZlMCIsIm9iaiI6W1t7ImhlaWdodCI6Ijw9MTA3OSIsInBhdGgiOiJcL2ZcL2NjMDU5OTgwLTk4MDctNGM3Ni04Mzc3LTAzOWUyODQ5ZjY5NlwvZGY4ajlsbC0wYmY5YTYzOC04OWQ3LTRhZjMtYjhlMC00YWVjNmNkYjUyNWYucG5nIiwid2lkdGgiOiI8PTEyODAifV1dLCJhdWQiOlsidXJuOnNlcnZpY2U6aW1hZ2Uub3BlcmF0aW9ucyJdfQ.kDpKYP4xSJ5kImTPUxKTqXxXxAfsQOmNErs9NxA4UW0
{"typ":"JWT","alg":"none"}
eyJ0eXAiOiJKV1QiLCJhbGciOiJub25lIn0
{"sub":"urn:app:","iss":"urn:app:","obj":[[{}]],"aud":["urn:service:file.download"]}
eyJzdWIiOiJ1cm46YXBwOiIsImlzcyI6InVybjphcHA6Iiwib2JqIjpbW3t9XV0sImF1ZCI6WyJ1cm46c2VydmljZTpmaWxlLmRvd25sb2FkIl19
def lcg(a, x, b, m):
return (a * x + b) % m
def main():
print("Please select parameters to test with.")
a = eval(input("a = "))
b = eval(input("b = "))
m = eval(input("m = "))
s = eval(input("s_0 = "))
import simpleaudio
import math
import struct
import random
def mix(a, b):
return (a + b) - (a * b)
def sample_sine(freq, i, volume = 0.3, rate = 44100):
"""
import requests
import urllib.parse
MODELS = ["photo", "standard", "cartoon", "light"]
MODES = ["cpu", "gpu"]
infull = urllib.parse.quote(b"C:\\Users\\User\\SomeFile.png")
folder = urllib.parse.quote(b"C:\\Users\\User\\OutputAI\\")
size = urllib.parse.quote(str(64 * 64))
#include <stdio.h>
#include <string.h>
const char string[] = "Edit: Also, if you are reading this, you are probably wasting your time just decoding some random comment on reddit LMAO.";
int main(int argc, char *argv[]) {
int string_length = strlen(string);
for (int i = 0; i < string_length; i++) {
printf("%x ", string[i]);
Exploring the early history of Fur Affinity (or any early web community - before everything became so big and standardised and when the web was more jank) and listening to Axolotl from the Minecraft OST is a fucking lucid expreince. It's almost what I imagine being high feels like.
- Knot
#include <stdio.h>
#include <string.h>
const char string[] = "01011001 01101111 01110101 00100000 01100001 01110010 01100101 00100000 01100001 00100000 01101110 01100101 01110010 01100100 00100000 01111001 01100110 00100000 01111001 01101111 01110101 00100000 01100011 01100001 01101110 00100000 01110010 01100101 01100001 01100100 00100000 01110100 01101000 01101001 01110011";
int main(int argc, char *argv[]) {
int string_length = strlen(string);
int power = 0;
int value = 0;