Skip to content

Instantly share code, notes, and snippets.

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

Khangaroo khang06

😳
𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫𒐫
View GitHub Profile
@khang06
khang06 / decryptdzhtml.py
Last active December 10, 2020 15:41
tinfoil™ 1.2 html decryptor
# simon wrote a decryptor first, so i based this off of his
import sys
from binascii import hexlify
from Crypto.PublicKey import RSA
from Crypto.Hash import SHA256
from Crypto.Cipher import PKCS1_OAEP
from Crypto.Cipher import AES
if len(sys.argv) != 3:
print('usage: decryptdzhtml.py [input] [output]')
@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 / 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 / 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 / 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 {
@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

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: