Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/env python3
import sys
import os
if len(sys.argv) != 2:
sys.exit("padfirm.py firm.bin")
filenamesplit = os.path.splitext(sys.argv[1])
filename = os.path.basename(filenamesplit[0])
#!/usr/bin/env python3
# Picross 3D: Round 2 amiibo puzzle unlocker
# based on https://github.com/Rohul1997/Picross-R2-Amiibo-Unlocker
import sys
if len(sys.argv) == 1:
sys.exit("p3dr2_amiibo_unlock.py <SAVEDATA>")
#!/usr/bin/env python3
import os
import sys
from Crypto.Cipher import AES
from Crypto.Hash import SHA256
if len(sys.argv) < 4:
sys.exit("encrypt_keysector.py <otp> <secret_sector> <output>")
#!/usr/bin/env python3
import binascii
import struct
import sys
from Crypto.Cipher import AES
if len(sys.argv) < 3:
print("usage: cia_extract_deckey.py <cia-file> <decrypted-titlekey>")
sys.exit(1)
#!/bin/bash
for f in 3dsbootldr_fatfs 3dsbootldr_firm 3dshax unprotboot9_sdmmc; do cd $f; make clean; cd ..; done
OUTPATH=/Volumes/EMUNAND9SD
cd unprotboot9_sdmmc
make
cd ../3dshax
#!/usr/bin/env python3
import asyncio
import discord
import time
text = open("welcome-update.md").read()
client = discord.Client()
@ihaveamac
ihaveamac / unrestrict.c
Created August 3, 2017 00:23 — forked from SonoSooS/unrestrict.c
Unrestrict - parental control remover for Nintendo 3DS
#include <3ds.h>
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
void __system_allocateHeaps(void)
{
extern char* fake_heap_start;
extern char* fake_heap_end;
# Pure python AES128 implementation
# SciresM, 2017
from struct import unpack as up, pack as pk
def sxor(s1, s2):
'''Xors two strings.'''
assert(len(s1) == len(s2))
return ''.join([chr(ord(x) ^ ord(y)) for x,y in zip(s1, s2)])
class AESCBC:
#!/usr/bin/python
from __future__ import print_function
from __future__ import division
import subprocess as sp
from os.path import exists, expanduser
from sys import argv
from datetime import datetime
from Foundation import NSUserNotification