CasualX / pelite

Lightweight, memory-safe, zero-allocation library for reading and navigating PE binaries.
MIT License
290 stars 42 forks source link

Add json output to pedump #225

Open rhaist opened 4 years ago

rhaist commented 4 years ago

It would be great if the pedump tool would have a cli flag to dump all of the data as a Json document. This way it would become a safe alternative to the widely used python pefile tool:

https://github.com/erocarrera/pefile

CasualX commented 4 years ago

This is interesting and has been on my mind but I couldn't get the code right to my satisfaction.

In the meantime I did work on a JS API (powered by wasm) which begs the question: is it important that this tool is a binary? Could it also work as a library in eg. JS or or python? I ask because I'm much more comfortable making bindings than writing CLI applications...