Created
March 3, 2020 21:24
-
-
Save pgoodman/e2f814a3e0cfb00e93f243bde2a9e126 to your computer and use it in GitHub Desktop.
Example on how to use Anvill
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
| # From the IDA Python Interpreter: | |
| sys.path.append("/path/to/remill/tools/anvill/python") | |
| import anvill | |
| p = anvill.get_program() | |
| p.add_function_definition(here(), True) # `True` means recursively add all xref'd defs | |
| open("/tmp/slice.json", "w").write(p.proto()) # This a JSON specification containing relevant machine code bytes |
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
| /path/to/remill-build/tools/anvill/anvill-decompile-json-9.0 --spec /tmp/slice.json --ir_out /dev/stderr |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment