Skip to content

Instantly share code, notes, and snippets.

View khang06's full-sized avatar
😳
𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫

Khangaroo khang06

😳
𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫
View GitHub Profile

Keybase proof

I hereby claim:

  • I am khang06 on github.
  • I am khangaroo (https://keybase.io/khangaroo) on keybase.
  • I have a public key ASAJ0X5a_Qn9O-6umnwVkAJ6wl-nLamqVoooZF8gHbC2Mwo

To claim this, I am signing this object:

@khang06
khang06 / 0-SD-GUIDE.md
Last active July 30, 2024 09:40
Switch SD Dumping 101

https://gbatemp.net/threads/nintendo-switch-sd-to-nsp-dumper.514816/ for a more automated and easier way to do this

This guide assumes you have previous experience with hactool and messing with your NAND. You aren't supposed to blindly copy commands in this, so read before pasting!

Also, the Python sections require Python 2.7 and pycrypto. Make sure your hactool is v1.2 or above.

Obtaining Your SD Seed

  1. Run https://cdn.discordapp.com/attachments/432400335235973120/478053328857726976/Compelled-Disclosure.nro (source at https://github.com/shadowninja108/Compelled-Disclosure, thx Shadów#6239)
@khang06
khang06 / hactool_key_verify.py
Last active January 26, 2019 21:53
hactool key verifier
'''
hactool key verifier v0.2 by Khangaroo
a very badly made script to verify your hactool keys
Hash sources:
https://gist.github.com/roblabla/d8358ab058bbe3b00614740dcba4f208
My own console
https://github.com/SocraticBliss/hactool/blob/4169184c88a10cde0db8eaa83d38bd32a7f35751/KEYS.md
Some places that I can't link
'''
@khang06
khang06 / log.txt
Created July 3, 2018 18:29
Celeste yuzu log
[ 0.000160] Common.Filesystem <Debug> common/file_util.cpp:CreateFullPath:196: path exists /home/khangaroo/.local/share/yuzu/log/
[ 0.245842] Loader <Warning> core/loader/loader.cpp:GetLoader:140: File /media/khangaroo/extra/hactool/celeste/main has a different type than its extension.
[ 0.245848] Loader <Debug> core/loader/loader.cpp:GetLoader:145: Loading file /media/khangaroo/extra/hactool/celeste/main as Directory...
[ 0.245851] HW.Memory <Debug> core/core.cpp:Init:164: initialized OK
[ 0.286342] HW.Memory <Debug> core/memory.cpp:MapPages:47: Mapping 0x0 onto 0000000000000000-0000001000000000
[ 0.369762] HW.LCD <Debug> core/hw/lcd.cpp:Init:59: Initialized OK
[ 0.369770] HW <Debug> core/hw/hw.cpp:Init:88: Initialized OK
[ 0.369853] Service.FS <Debug> core/hle/service/filesystem/filesystem.cpp:RegisterFileSystem:29: Registered file system SaveData_Factory with id code 0x00000002
[ 0.369858] Service.FS <Debug> core/hle/service/filesystem/filesystem.cpp:RegisterFileSystem:29: Registered file
@little-endian
@nsobid-F18FF3CFCBAD0884D72ABBEB6C540D6B
@flag offset_shift 0x100
#01003BC0000A0000 Splatoon 2 1.0.0 USA
// DbgSetting over ShootingRange
@enabled
// first we need a way to access the scene
01455850 540F1A00 // add the ptr to Cstm::newScene<TitleForShow::Scene>(int,sead::Heap *) to ShootingRange (not possible to do it patching .text, you need to patch .rela.dyn otherwise it will be overwritten with the relocation stuff)
001A0F84 E0FF8152 // operator new(0x3F8) to operator new(0xFFF)
@khang06
khang06 / debugmenu100.pchtxt
Created August 28, 2018 00:25
bad dbgsetting patch v2
@little-endian
@nsobid-F18FF3CFCBAD0884D72ABBEB6C540D6B
@flag offset_shift 0x100
#01003BC0000A0000 Splatoon 2 1.0.0 USA
// DbgSetting over ShootingRange
@enabled
// first we need a way to access the scene
01455850 540F1A00 // add the ptr to Cstm::newScene<TitleForShow::Scene>(int,sead::Heap *) to ShootingRange (not possible to do it patching .text, you need to patch .rela.dyn otherwise it will be overwritten with the relocation stuff)
001A0F84 E0FF8152 // operator new(0x3F8) to operator new(0xFFF)
@khang06
khang06 / list.txt
Last active January 2, 2020 18:40
(almost) everything that gets sent to nintendo through play reports/splatnet2 in splatoon 2
please visit https://wiki.oatmealdome.me/Telemetry, it's much more well-formatted and is on a wiki
4.1.0 play report/splatnet2 stuff revision 2 (oct 23 2018) by khangaroo
thanks to oatmealdome and shadow for some help
events that have only been statically analyzed are marked with (?)
events that are a big mystery for one reason or another are marked with (???)
3.1.0 function names are used where possible, anything else is the ida name
you can help out with documentation by dumping your own play report data!
@khang06
khang06 / main.cpp
Last active November 3, 2018 03:16
terrible yaz0 c++ thing
#include <cstdio>
#include <cstdint>
#include <cstring>
#include <cstdlib>
#include <iostream>
#include <fstream>
#include <vector>
namespace Yaz0 {
struct Header {
@khang06
khang06 / ksacmp.py
Last active December 2, 2018 22:11
ksacmp - .cmp tool for Kirby Star Allies written in Python 3
"""
ksacmp v1 by Khangaroo
compresses and decompresses .cmp files from Kirby Star Allies
based on Random Talking Bush's QuickBMS script
"""
import sys
import lz4.frame
@khang06
khang06 / api.md
Last active December 10, 2020 15:42
ThisIsLanguage Private API

ThisIsLanguage Private API

totally unofficial, and is very subject to change

Cookies

Name Description Example (values may be censored)
til no idea, the first part is the user id 10000069420_5c81bad1a3a8e2.87403434
ci_session uri encoded (example is decoded for readability) also no idea what most of these values are a:9:{s:10:"session_id";s:32:"d223e1f94e041a3ee3d9ef90aa5f17e1";s:10:"ip_address";s:12:"127.0.0.1";s:10:"user_agent";s:115:"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/72.0.3626.121 Safari/537.36";s:13:"last_activity";i:1552005746;s:9:"user_data";s:0:"";s:14:"school_user_id";s:0:"";s:12:"subscription";s:4:"full";s:8:"language";s:1:"2";s:22:"school_user_id_session";s:11:"10000069420";}693bb4598cac7347b5433e6009dd74943186b3b1

Authentication