Skip to content

Instantly share code, notes, and snippets.

@ashduino101
ashduino101 / ComplexStackStrings.py
Last active August 21, 2025 04:32
Ghidra script for reading more complicated stack strings
from ghidra.program.model.lang import Register
from ghidra.program.model.scalar import Scalar
callee_save_regs = ['R12', 'R13', 'R14', 'R15']
listing = currentProgram.getListing()
inst = getInstructionAt(currentAddress)
reg_vals = {}
@ashduino101
ashduino101 / obb_extractor.py
Created August 14, 2025 22:25
Android OBB file extractor I hacked together in like 5 minutes
import struct
import sys
import os
with open(sys.argv[1], 'rb') as f:
v = struct.unpack('>i', f.read(4))[0]
_u1 = f.read(20)
num_entries = struct.unpack('>i', f.read(4))[0]
entries = []
for _ in range(num_entries):
@ashduino101
ashduino101 / FLM.bt
Last active August 22, 2025 06:44
FL Studio Mobile binary template
//------------------------------------------------
//--- 010 Editor v14.0 Binary Template
//
// File: FLM.bt
// Authors: ashduino101
// Version: 1.1
// Purpose: Binary template for FL Studio Mobile project files
// Category: Audio
// File Mask: *.flm
// ID Bytes: 31 30 4C 46 (10LF)
@ashduino101
ashduino101 / decompiler.html
Created March 10, 2025 05:21
C# decompiler in one HTML file (runs in browser)
This file has been truncated, but you can view the full file.
<!DOCTYPE html>
<!-- Licensed to the .NET Foundation under one or more agreements. -->
<!-- The .NET Foundation licenses this file to you under the MIT license. -->
<html>
<head>
<title>dnSpy-wasm</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<script type="text/javascript">
@ashduino101
ashduino101 / FLP.bt
Last active December 18, 2023 08:50
Binary template for FL Studio project files
//------------------------------------------------
//--- 010 Editor v14.0 Binary Template
//
// File: FLP.bt
// Authors: ashduino101
// Version: 1.0
// Purpose: Binary template for FL Studio project files
// Category: Audio
// File Mask: *.flp
// ID Bytes: 46 4C 68 64 (FLhd)