Skip to content

C code output #1643

Answered by psifertex
jakejasey asked this question in General
Discussion options

You must be logged in to vote

There's a couple of ways you could do this. First, here's a small snippet I wrote to save the HLIL for a function to a file:
https://gist.github.com/psifertex/6fbc7532f536775194edd26290892ef7#file-save_decompilation-py

You can even use the Snippet Manager to bind the snippet to a hotkey.

Of course, when we talked in slack you mentioned your goal was to grep for particular patterns in the results, so I want to take a moment and mention the True Binary Ninja Way:

Instead of operating directly on strings or even disassembly, we recommend writing plugins to run over the IL. They'll be faster, they'll automatically be cross-architecture, and there's all sorts of powerful APIs that you don't ha…

Replies: 4 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by psifertex
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants