Skip to content

Instantly share code, notes, and snippets.

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

Khangaroo khang06

😳
𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫
View GitHub Profile
@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 / 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 / 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)
@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 / 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
@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 / 0-SD-GUIDE.md
Last active April 19, 2024 07:41
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)

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: