Emulator rewrite for ghidra 12.1 + client service tracing + refactor of ipc database + interface hashing#98
Open
borntohonk wants to merge 3 commits into
Open
Emulator rewrite for ghidra 12.1 + client service tracing + refactor of ipc database + interface hashing#98borntohonk wants to merge 3 commits into
borntohonk wants to merge 3 commits into
Conversation
Contributor
Author
|
(this most likely needs additional workflow adjustments to support 12.1.0) |
… database, adjust export to be like swipc ninupdates, refactor ipcdatabase for 22.1.0 to be in emitted order, add service tracing
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
changes:
example usage of one of them, processes all files inside of the project and exports their json formatted outputs of ipc interfaces and commands:
of a new projtect with a folder of sysmodules/.nso and .kips in a folder (note: this includes full analysis of the files, which takes longer time)
all the applets (about 21 different ones) from firmware version 22.1.0 on a 6c/12t amd 5600x processor takes about 1 hour and 32 minutes;
all the sysmodules/.nso and .ips from firmware version 22.1.0 on a 6c/12t amd 5600x processor takes about 1 hour and 2 minutes;
combined it takes about 2 hours and 34 minutes to process applets + sysmodules & kips, but provides the export, and of course every program analyzed and labelled if you open the GUI side of ghidra, alongside the json export of every ipc call (similar to how ninupdates/swipc_server_modern does it)
of an existing project (note this assumes the project contains analyzed files, and skips that analysis process to save time, 6 minutes at most for the largest program, "NS" :
example output of processing the 22.5.0 firmware files:
https://github.com/borntohonk/Switch-Ghidra-Guides/tree/master/ipc_json_dumps/22.5.0
( also have an output of a 22.2.0 sdk nso0 sourced in Satryn DX[01001F701F7C2800][v196608] )
( https://github.com/borntohonk/Switch-Ghidra-Guides/blob/master/ipc_json_dumps/sdk_22.2.0.json )
example output of clientside service import from NS (largest program), from the .json export feature: