lifting-bits / dds

Dr. Disassembler
35 stars 9 forks source link

This commit adds an API to dds that is independent of the command-line dds-analyze tool. #15

Closed pgoodman closed 3 years ago

pgoodman commented 3 years ago

Example usage:

>>> import dds
>>> disass = dds.BinaryAnalyzer("/tmp", "amd64", "linux", open("/Users/pag/Code/bmef/hello_binary", "rb").read())
>>> for f in disass.functions:
...   print("Function {:x}".format(f.ea))
...   for i in f.instructions:
...     print("  {:x}".format(i.ea))
... 
Function 400410
  400410
Function 400420
  400420
  400426
  40042b
  400400
...