3ds Ghidra Scripts
These are ghidra scripts to help with 3ds reverse engineering.
Features:
- Labels, comments (when inlined), and bookmarks svc use
- Labels service handles, given ctr::srv::GetServiceHandleDirect
- Labels IPC functions and uses handles to better identify functions
- Adds
ThreadLocalStorage
and types thread local storage - Renames thread local storage to 'tls'
These have been built over time for my personal use as needs came up, so results may vary and improvements can be made. If you run into a situation where these don't work as intended, I would happily accept a PR.
Running order
My preferred order to run these is:
- Label svcs
- Label handles
- Label ipc functions
- Set tls type
Credits
Thanks to:
- 3dbrew for almost everything in the ctr_services.py file
- HackOvert for their ghidra snippets