orhun / binsider

Analyze ELF binaries like a boss 😼🕵️‍♂️
https://binsider.dev/
Apache License 2.0
2.72k stars 61 forks source link

Add a (switch|cli-arg) to enable Human Readable Output for `FileSize` `MemSize` `Size` #47

Closed Azathothas closed 1 month ago

Azathothas commented 1 month ago

Hello, It would be immensely helpful if there was a switch or a cli option (-h | --human) This would enable human readable output (KiB,MiB,GiB...) for the hex values of FileSize MemSize Size Perhaps in the future, this could also be extended to display values other than size in Human readable format.

image image

The intro/summary page already includes a Human readable format: image

Note: I don't know much about elf/binary analysis, so I apologize if this request is dumb. Essentially, I wanted to use binsider to give me a du|ncdu kind of output about the size of each section on an elf file.

orhun commented 1 month ago

Hello 👋🏼

Really good suggestion! I currently use the bytesize crate to show human readable output for the general tab. It should be fairly straightforward to use it for the other fields as well.

Would you be interested in contributing this feature? I would like to have it available in the upcoming release :)

Azathothas commented 1 month ago

Unfortunately, I don't know any rust… I will wait patiently until that feature is implemented, take your time, there's no rush. :)