Skip to content

Instantly share code, notes, and snippets.

View Lrs121's full-sized avatar

Larson T. Lrs121

View GitHub Profile
@TheGammaSqueeze
TheGammaSqueeze / ktr1.dts
Created August 17, 2023 15:59
KT-R1 DTS of running kernel
/dts-v1/;
/ {
model-part-name = "MT6789V/CD";
#size-cells = <0x02>;
compatible = "mediatek,MT6789";
model-external-name = "MT6789V/CD";
#address-cells = <0x02>;
interrupt-parent = <0x01>;
model = "MT6789V/CD";
@DavidBuchanan314
DavidBuchanan314 / widevine_fixup.py
Last active December 24, 2025 21:09
Patch aarch64 widevine blobs from ChromeOS to work on non-ChromeOS linux, including platforms with 16K page size like Apple Silicon / Asahi Linux
"""
MIT License
Copyright (c) 2023 David Buchanan
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
@tuantmb
tuantmb / transmac reset.txt
Created February 22, 2023 23:16
Reset TransMac Trial back to 15 days (Unpatchable)
since you can find this on the internet easily anyway, i decided to create this for ya.
I know a lot of ppl wont like this but fuck it, it's ez anyway.
One click batch script download: https://anonfiles.com/59T773t2uf/TransMac_Trial_Resetter_bat
Run this whenever you want or put it in your startup folder
(Win+R and type shell:startup)
For all other users, one time easy way to do it, open Regedit
Navigate to Computer\HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Shell Extensions\Approved\ or paste that in the address bar.
@valiant-code
valiant-code / IronMon-Rules.md
Last active March 11, 2026 19:44
IronMon Rules

The IronMON Challenge

The IronMon challenge is a Pokémon Randomizer Challenge run created by iateyourpie. Designed to make experiencing the randomizer fun and challenging, while taking away the wild Pokémon grind that come with some other challenges. It was originally made for Fire Red / Leaf Green but the rules can be applied/adjusted for other games as well. If you're interested to find out more about IronMon, join our Discord community!

IronMon has varying levels of difficulties, to keep it more approachable but also provide the toughest challenge possible for those who want it.

NSP Update Patcher

Instructions:

  1. Place your base NSP, update NSP, and prod.keys into a new folder
  2. Open a terminal and cd into this folder
  3. Download and run script:
curl -o nsp_update_patcher.sh https://gist.githubusercontent.com/willfaust/fb90dec409b8918290012031f09a78ef/raw/9abf2e1b020203aec0051fad99524f8269cb1edd/nsp_update_patcher.sh && chmod +x nsp_update_patcher.sh && ./nsp_update_patcher.sh
@rlaphoenix
rlaphoenix / windows-7-plus-build-env-for-nitro.md
Last active July 11, 2023 18:10
Windows 7+ Build Environment for Nintendo NITRO-System (Nintendo DS) compiling.
# this file contains keys needed for decryption of file system data (WUD/WUX)
# 1 key per line, any text after a '#' character is considered a comment
# the emulator will automatically pick the right key
541b9889519b27d363cd21604b97c67a # example key (can be deleted)
d7b00402659ba2abd2cb0db27fa2b656 # Common
805e6285cd487de0faffaa65a6985e17 # Espresso Ancast
b5d8ab06ed7f6cfc529f2ce1b4ea32fd # Starbuck Ancast
9a164ee15ac7ceb64d3cc130094095f6 # 007 Legends [EUR, NUS]
@TheRadziu
TheRadziu / ultimate-vita-comparison.md
Last active January 31, 2026 20:28
Ultimate Vita Comparison (Firmwares & Rips vs Dumps)

Due to so many misinformation, false claims and confusion that goes around the web I've decided to make this quick comparison of all most known backup enabling tools, hackable vita firmwares and which one you should be using and why.
Date of last update: 13.01.2020

NoNpDRM Rips vs Dumps

NoNpDRM Rips Vitamin / MaiDumpTool Dumps
All original files untouched
Support Retail DLCs
Support Ripped (NoNpDRM) DLCs
Support Dumped (Vitamin/Mai) DLCs 1

Nintendo Switch RSA-PKCS#1 Public Key Recovery

This is a short writeup of a fun (but ultimately pretty useless) attack I implemented on the Nintendo Switch a few months ago resulting in the recovery of some otherwise unobtainable RSA public keys. Since public keys aren't private keys, this is pretty useless, apart from letting us validate some signatures on PC. Even so, the attack is a pretty cool one, so I thought I'd write it up.

Every Switch gamecart has a unique certificate (called its "CERT"), storing an RSA signature followed by some kind of unknown but unique encrypted data. I was trying to reverse how these certificates work, and the obvious first step was to try to see how they were validated. However, when I tried looking through the FileSystem (FS) module, which should be responsible for validating these certificates, I found no references to the format at all. The "CERT" magic number was nowhere to be seen, and I couldn't find an RSA modulus that validated the signatures I had. This was in

/*
* SEP firmware split tool
*
* Copyright (c) 2017 xerub
*/
#include <fcntl.h>
#include <stddef.h>
#include <stdio.h>
#include <stdlib.h>