Biber - ELF and PE Binary Inspector

[Biber]:


While learning kernel development, I started building a small tool to better understand executable formats. That project eventually became Biber, a lightweight ELF and PE binary inspector written in Zig.

demo

github:

https://github.com/hrasityilmaz/Biber

Already :

  • ELF32 / ELF64 parsing
  • PE32 / PE32+ parsing
  • 32 / 64 bit detection
  • Headers, sections, symbols and relocations
  • PE imports and exports
  • Hex dump support
  • Basic disassembler view

Supported Zig versions

used 0.16.0

Already my kernel issue ı will continue but probably ı will add on next release mach-o support

10 Likes

v0.2.0 released!

  • ARM support added

Since I’m working on a kernel project (my real aim is an RTOS), and as I went deeper into RTOS development I needed ELF analysis for ARM. So I prioritized ARM support over Mach-O, which is still planned for a future release.

Example ARM attributes output:

ARM ATTRIBUTES (.ARM.attributes)
    Vendor: aeabi
    Tag_CPU_name        : Cortex-M4  
    Tag_CPU_arch        : 13 (v7E-M)  
    Tag_CPU_arch_profile: 'M' -> Microcontroller (Cortex-M)  
    Tag_THUMB_ISA_use   : 2 (Thumb-2) 

GitHub: Release v0.2.0 · hrasityilmaz/Biber · GitHub