[WIP] DecompileIt : console line tool to decompile rpc interface #8
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_DESC
structures embedded in a binary. However the binary in question is the client side, andRpcView
don'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_DESC
descriptor andStringFormat
, and the offsets table forStringFormat
.The output is close to
RpcView
server-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,0xc0
Server side
If you're interested in merging it in
RpcView
in 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