Analizing MIPS binaries: is there a Python library for parsing binary data?

前端 未结 6 1531
小鲜肉
小鲜肉 2020-12-28 21:00

I\'m working on a utility which needs to resolve hex addresses to a symbolic function name and source code line number within a binary. The utility will run on Linux on x86,

6条回答
  •  我在风中等你
    2020-12-28 21:33

    You might be interested in the DWARF library from pydevtools:

    >>> from bintools.dwarf import DWARF
    >>> dwarf = DWARF('test/test')
    >>> dwarf.get_loc_by_addr(0x8048475)
    ('/home/emilmont/Workspace/dbg/test/main.c', 36, 0)
    

提交回复
热议问题