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 / tinfoildzpriv_v1.43.pem
Created March 20, 2019 22:32
new tinfoil key :)
-----BEGIN RSA PRIVATE KEY-----
MIIEowIBAAKCAQEAnjCTLhNi8UHdEUlXMMI//LO/TsulwLwfidD3Jey3EWIfHVfm
s9qE1IBCLl1X0Mb8TNJxFM26sREKnn13+W2MI8L11T8S1jse2c50Zqp5fg7/qwgM
1N/tM6jTU9tmX5SKM0zbLzBhFkTjXvFy67NDurNZLm8i/XBFKbLTNLu5wUSI6AIG
0vhBzFDILhCSHucPKk+JrFNbik+qeNd9wzTTzIhs2xcBlUzkyBQf64wgmsouZ+1q
HBlHDJDoMnM/LVUSELlq/TPK3QPUspCadgTxqbdqhXycSfshi/1VSxDWkD6Y4FUf
HbRsmn1fLKa/lw0nDZQR0I2nwnrxMUSAEEaGRQIDAQABAoIBAAxSyWx5+yfDU0cA
+SdlwplboWgwijmhDi3s1wwfzEUw6S6ehez19Yoecclt4ST1E3uim0edHVGk+7hM
GvgV9ihlDESwFLYWxfj+0eebmTpeTcGTr3g396EiIlByk5+XkUqczqh28uFKvZHM
aoD9JqYZSbXJ16Z5xBGTCkwd4cMyBagHuZ9v3yCgigTIIM/vsggAVYTyZmxvmbFy
@khang06
khang06 / output.txt
Created October 29, 2020 20:19
Genshin Impact Windows 1.0.1 String Literals
This file has been truncated, but you can view the full file.
0 || [Min: {0} Max: {1}]
1 || Data/_ExcelBinOutput/ShopGoodsExcelConfigData
2 || SetCombatFixedMovePoint
3 || value
4 || Transparent/Diffuse
5 || Diffuse
6 || AttachToStateIDMixin
7 || _Color
8 || _MainColor
9 || ConfigGuideInfoDialogAction
@khang06
khang06 / Program.cs
Created April 19, 2021 20:15
MIDI decryption algorithm for Magic Tiles 3
using System.IO;
using System.Security.Cryptography;
using System.Text;
namespace mt3decrypt
{
class Program
{
static readonly string MIDIKey = "$jshHgdn123&Am@n0te3+x";
@khang06
khang06 / logictest.py
Created September 15, 2021 21:19
Solving/ruining the fun of a hard logic puzzle with Z3
from z3 import *
from typing import List
# Please use this responsibly and not in any remotely competitive environment
class LogicSolver:
def __init__(self, comparables: List[int]):
self.comparables = comparables
self.vars = {}
self.solver = Solver()
@khang06
khang06 / shittyinjector.cpp
Last active November 17, 2023 17:16
Barebones launcher/injector for mhynot2
#include <Windows.h>
#include <stdio.h>
#define GAME_DIR L"D:\\Games\\Genshin Impact\\Genshin Impact game"
#define DLL_PATH "C:\\Users\\Khang\\source\\repos\\mhynot2-rewritten\\x64\\Debug\\mhynot2-rewritten.dll"
int main() {
printf("hi\n");
SetCurrentDirectoryW(GAME_DIR);
@khang06
khang06 / btdb2savecrypt.py
Last active December 29, 2021 00:49
PublicProfile.save encryption/decryption tool for Bloons TD Battles 2 1.0.4
import binascii
import sys
import string
import os
# the checksum algorithm operates on signed integers
def arsh32(n, b):
n = n & 0xFFFFFFFFF
n = (n ^ 0x80000000) - 0x80000000
return (n >> b) & 0xFFFFFFFF
@khang06
khang06 / atlasgen.cpp
Created July 5, 2022 06:16
Simple atlas generator for Proggy Clean (and other monospace bitmap fonts)
#include <Windows.h>
#include <gdiplus.h>
#include <stdio.h>
#pragma comment(lib,"gdiplus.lib")
using namespace Gdiplus;
// https://docs.microsoft.com/en-us/windows/win32/gdiplus/-gdiplus-retrieving-the-class-identifier-for-an-encoder-use
int GetEncoderClsid(const WCHAR* format, CLSID* pClsid) {
UINT num = 0; // number of image encoders