This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdint.h> | |
#include <stdio.h> | |
#include <stdlib.h> | |
// munged from https://github.com/simontime/Resead | |
namespace sead | |
{ | |
class Random | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// note: -D_7ZIP_ST is required when compiling on non-Windows platforms | |
// g++ -o lzma_sample -std=c++14 -D_7ZIP_ST lzma_sample.cpp LzmaDec.c LzmaEnc.c LzFind.c | |
#include <stdio.h> | |
#include <stdint.h> | |
#include <string.h> | |
#include <memory> | |
#include "LzmaEnc.h" | |
#include "LzmaDec.h" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# fun fact: | |
# this is internally referred to as 'SimpleEncryption' | |
# it is pretty damn simple, really | |
import sys | |
KEY = 0x5D | |
INITIAL_SPAN = 0x200 | |
SPAN = 0x100 | |
input_name = sys.argv[1] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# runs under Python 2 (yes, I know...) | |
# required modules: pip install unicorn pefile | |
# this code is made available under the MIT license, as follows: | |
# Copyright (c) 2018 Ash Wolf | |
# Permission is hereby granted, free of charge, to any person obtaining a copy | |
# of this software and associated documentation files (the "Software"), to deal | |
# in the Software without restriction, including without limitation the rights | |
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Notifications from Mouse: | |
08 02 x :: sends message with wParam 8, lParam x to GUI | |
08 01 x :: sends message with wParam 9, lParam x to GUI | |
08 06 x :: sends message with wParam 0xA, lParam x to GUI | |
08 09 __ 01 __ 04 :: sends message with wParam 0xB, lParam 0 to GUI | |
08 09 __ 01 __ 08 :: sends message with wParam 0xB, lParam 1 to GUI | |
08 09 __ 01 __ 02 :: sends message with wParam 0xB, lParam 2 to GUI | |
08 09 __ 02 __ 00 :: sends message with wParam 0xB, lParam 3 to GUI | |
08 09 __ 06 __ __ :: sends message with wParam 0xB, lParam 4 to GUI |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# a massive kludge by Ninji | |
# extracts the encrypted NRO from Mario Golf: Super Rush | |
# | |
# requires Python 3 and the lz4 and unicorn modules | |
import struct | |
import lz4.block | |
from unicorn import * | |
from unicorn.arm64_const import * |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use super::enums as gxe; | |
enum Size { | |
Bit4, | |
Bit8, | |
Bit16, | |
Bit32, | |
} | |
trait Decode { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* WARNING: Type propagation algorithm not settling */ | |
uint ProduceNewFlowerGenes(ulonglong geneSetA,uint geneSetB) | |
{ | |
int iVar1; | |
uint outputGene3; | |
uint outputGene2; | |
ulonglong geneSetA_; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# savefile decrypter for Animal Crossing: New Horizons | |
# copyright Ash Wolf (Ninji) 2020 | |
import struct, binascii, sys, Crypto.Cipher.AES, Crypto.Util.Counter | |
if len(sys.argv) != 4: | |
print('Usage: %s [main.dat] [mainHeader.dat] [output.dat]' % sys.argv[0]) | |
sys.exit() | |
class SeadRandom: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import binascii, struct, zlib | |
key = b'Ti92T_77Zij_MiTik' | |
def decrypt_pkt(buf): | |
a = buf[:2] | |
b = buf[10:12] | |
if buf[8] == 1: | |
raise 'gzipped!!' |
NewerOlder