Skip to content

Instantly share code, notes, and snippets.

@pgoodman
Created March 3, 2020 21:24
Show Gist options
  • Select an option

  • Save pgoodman/e2f814a3e0cfb00e93f243bde2a9e126 to your computer and use it in GitHub Desktop.

Select an option

Save pgoodman/e2f814a3e0cfb00e93f243bde2a9e126 to your computer and use it in GitHub Desktop.
Example on how to use Anvill
# 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
/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