Reputation: 273
I love using the PeFile library for Python to parse PE files. Is there a similar library for parsing ELF?
Upvotes: 4
Views: 1336
Reputation: 1045
This is pretty old, but it still came to the top of Google when I searched...
A good library is lief - https://lief.quarkslab.com
It has support for elf, pe and macho
Upvotes: 2
Reputation: 49513
You should take a look at pyelftools
It supports ELF
and DWARF
binary formats. It is a project which is in active development too.
Upvotes: 3
Reputation: 904
There's also pylibelf: https://github.com/crackinglandia/pylibelf
It only supports the ELF format though, and it's read-only. But it's in active development, and the write part is expected soon at the time I write this.
Upvotes: 0