Skip to content

Instantly share code, notes, and snippets.

View InusualZ's full-sized avatar

Wesley Moret InusualZ

  • 18:27 (UTC -04:00)
View GitHub Profile
@InusualZ
InusualZ / DTKSplitHelper.java
Last active January 14, 2024 21:36
Ghidra script to help with generate dtk splits
//@category
//@keybinding
//@menupath
//@toolbar
import docking.DialogComponentProvider;
import ghidra.app.script.GhidraScript;
import ghidra.program.model.address.Address;
import ghidra.program.model.address.AddressIterator;
import ghidra.program.model.address.AddressSetView;
@InusualZ
InusualZ / M2CScript.java
Created March 30, 2023 03:06
M2C Decompiler Integration Into Ghidra
// M2C Decompiler Plugin
//@author InusualZ <Wesley Moret>
//@category Decompiler
//@toolbar world.png
//@keybinding: ctrl-shift-m
import ghidra.app.script.GhidraScript;
import ghidra.program.database.ProgramDB;
import ghidra.program.database.code.CodeManager;
import ghidra.program.database.code.InstructionDB;
@InusualZ
InusualZ / items.csv
Created August 8, 2022 14:35
Monster Hunter Tri Items ID
ID Name Hex
1 Barrel Bomb S 0001
2 Barrel Bomb L 0002
3 Pitfall Trap 0003
4 Shock Trap 0004
5 Flash Bomb 0005
6 Oxygen Supply 0006
7 Sonic Bomb 0007
8 Throwing Knife 0008
9 Poison Knife 0009
@InusualZ
InusualZ / SymbolManager.py
Created January 10, 2022 22:18
Better Symbol/Struct exported/importer from ghidra
# Import/Export Symbols/Structs
#@author InusualZ
#@category Data
#@keybinding
#@menupath
#@toolbar
from ghidra.program.model.symbol import SymbolType, SourceType
from ghidra.program.model.data import DataType, Structure, Array, IntegerDataType, ByteDataType, BooleanDataType, BuiltInDataType, Pointer, DefaultDataType
from org.apache.commons.lang3 import StringUtils
@InusualZ
InusualZ / RSOSymbols.py
Last active January 3, 2022 23:18
Load RSO Symbols
# Import RSO modules, exported symbols
#@author InusualZ
#@category
#@keybinding
#@menupath
#@toolbar
from gamecubeloader.common import CodeWarriorDemangler
from ghidra.app.util.demangler import DemanglerOptions
from ghidra.program.model.symbol import SourceType
"""DWC Network Server Emulator
Copyright (C) 2014 polaris-
Copyright (C) 2014 ToadKing
Copyright (C) 2016 Sepalani
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as
published by the Free Software Foundation, either version 3 of the
License, or (at your option) any later version.
@InusualZ
InusualZ / rsolib.py
Last active October 21, 2021 20:06
RSO Modules Library
"""
@Spec http://www.metroid2002.com/retromodding/wiki/RSO_(File_format)
@Spec https://github.com/dolphin-emu/dolphin/blob/master/Source/Core/Core/Debugger/RSO.h
"""
import struct
from dataclasses import dataclass, field
from typing import List, Optional
Func zz_03fd324_ : 8006 : 803fd5fc : [803ebdc8, 803dc754, 803f72bc]
Func zz_03fd324_ : 8000 : 803fd620 : [803f7290]
Func PatInterface::zz_0412188_ : 8000 : 804121f4 : [803f7290]
Func zz_04122dc_ : 8005 : 80412318 : [803ebf98, 803dca50]
Func zz_03fd81c_ : 8006 : 803fd8cc : [803ebdc8, 803dc754, 803f72bc]
Func zz_03fd81c_ : 8000 : 803fd8f0 : [803f7290]
Func PatInterface::handleNetworkState2 : 0003 : 803ff3d0 : []
Func PatInterface::handleNetworkState2 : 8001 : 803ff8f4 : []
Func recvAnsAlert : 8002 : 8040436c : [803ebdfc, 803f72a0]
Packet 60100200 : 8006 : 8040460c : [803ebdc8, 803dc754, 803f72bc]
@InusualZ
InusualZ / Main.cpp
Last active January 7, 2018 22:54
Unscramble World
#include <ctime>
#include <iostream>
#include <mutex>
#include <string>
#include <thread>
#include <vector>
std::vector<std::string> values;
std::mutex mutex;
@InusualZ
InusualZ / makefile
Created January 22, 2015 19:13
Generic Executable Makefile
#Makefile Settings
#Project Name
PROJECT=BenchMine
#Source directory
SOURCES_DIRECTORY=src
#Include Directory
INCLUDE_DIRECTORIES="include/"