Skip to content

Instantly share code, notes, and snippets.

View rvtr's full-sized avatar
🤭
Oopsies, I bricked your DS

Lillian Skinner rvtr

🤭
Oopsies, I bricked your DS
View GitHub Profile
@rvtr
rvtr / remaketad.pl
Last active May 15, 2024 23:32
DSi and Wii (T/W)AD decryption tool from TwlIPL but better!
#!/bin/perl
#
# You'll need to do "cpan Crypt::Rijndael" and "cpan Switch" in order to run this.
#
# I've commented out all the lines for using maketad to create a new TAD.
# Just doing a bunch of testing stuff.
use strict;
use Crypt::Rijndael;
use Digest::SHA1 qw(sha1);
@rvtr
rvtr / decrypt_tad.py
Last active December 14, 2023 04:01 — forked from NWPlayer123/decrypt_tad.py
Tool for decrypting DSi TADs (not the ones listed on dsibrew, that's wrong, the installable ones that are closer to WADs), py2/3
from io import BytesIO
from struct import unpack
from binascii import hexlify, unhexlify
from Crypto.Cipher import AES #pip install pycryptodome
import sys
dsi_common_key = unhexlify(b"%032X" % 0xAF1BF516A807D21AEA45984F04742861) # DSi common key
debugger_common_key = unhexlify(b"%032X" % 0xA2FDDDF2E423574AE7ED8657B5AB19D3) # DSi debugger common key (used for `maketad.updater` TADs)
wii_debug_key = unhexlify(b"%032X" % 0xA1604A6A7123B529AE8BEC32C816FCAA) # Wii debug key
@rvtr
rvtr / extract-updater-rofs.sh
Last active August 21, 2023 08:28
Extract firmware from gigaleak 3DS SystemUpdaters
# extract-updater-rofs
# Extracts firmware CIAs from ROFS containers for some gigaleak SystemUpdaters. Will accept "Contents.cnt" and decrypted "romfs.bin"
# Usage: ./extract-updater-romfs <input file> (output directory)
###################################################################################
# Set input and output paths
###################################################################################
OUTPUT_DIR="extract-updater-romfs_output"
rm -r "extract-updater-romfs_output"
mkdir "extract-updater-romfs_output"