[WIP] DecompileIt : console line tool to decompile rpc interface#8
Open
1orenz0 wants to merge 11 commits intosilverf0x:masterfrom
Open
[WIP] DecompileIt : console line tool to decompile rpc interface#81orenz0 wants to merge 11 commits intosilverf0x:masterfrom
1orenz0 wants to merge 11 commits intosilverf0x:masterfrom
Conversation
added 11 commits
February 28, 2018 13:03
DecompileIt rely on reading remote process memory and applying undocumented C structures on it to parse rpc internals, and consequently need to be the same archness as the target process.
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.
Hi,
I wanted to extract and decompile some RPC interfaces from
MIDL_STUB_DESCstructures embedded in a binary. However the binary in question is the client side, andRpcViewdon't decompile the interface since it's server-oriented.Anyway I ripped the code I needed from the codebase and I wrote a console line utility for it. Basically you need to feed the target process PID, the specified module name, offsets to the
MIDL_STUB_DESCdescriptor andStringFormat, and the offsets table forStringFormat.The output is close to
RpcViewserver-side decompilation, with some interesting differences :Client side
DecompileIt.exe --pid EXPLORER_PID --module ResourcePolicyClient.dll --descriptor 0xf410 --format-str 0x11ba2 --format-str-offsets 0,0x30,0x66,0x90,0xc0Server side
If you're interested in merging it in
RpcViewin some way and have questions, please hit me with it. If you have no love for this, I'm also cool with it (this tool already served its purpose).bibis,
L