Skip to content
KitploitKITPLOIT
ToolsBlog
Submit
ToolsBlog
Submit

Hacking, PenTest, and Cybersecurity Tools for Your Security Arsenal!

Kitploit is a directory of hacking, cybersecurity, and pentesting tools. Discover the latest project updates to find vulnerabilities, analyze systems, automate testing, and strengthen your security.

··Feeds·Contact·Privacy·© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
elfpeek — Minimal ELF inspector written in C for quick binary layout inspection | Kitploit
Tools/GitHubGitHub/oblivionsage/elfpeek
Static AnalysisReverse EngineeringDebuggersBinary AnalysisLearning & Education
GitHuboblivionsage/elfpeek

elfpeek

Minimal ELF inspector written in C for quick binary layout inspection

View Repository
29138 months agoReviewed by Kitploit

Most Popular

View all →

Discover the most used tools by our community.

Explore all tools

Browse our collection of tools

View all tools →
Share

elfpeek

C Linux ELF32 | ELF64 License Stars

No Dependencies Minimal RE Tool

Minimal ELF inspector with interactive REPL for quick binary analysis


elfpeek demo


Why?

Not a replacement for readelf or . Just a quick, focused tool for common RE questions:

Download Tool
objdump
  • What's the binary layout?
  • Which segment/section contains this address?
  • What's the file offset for this VA?
  • What bytes are at this location?
  • Which function owns this address?

Also serves as readable ELF parsing example in C. Handles stripped and segment-only binaries gracefully.

Features

  • Interactive REPL with readline support (history, line editing)
  • Dynamic colored prompt - shows current file: (elfpeek:ls)
  • Colored hexdump - null (gray), printable (green), control (red), high bytes (yellow)
  • Colored sections - executable (green), writable (yellow), read-only (cyan)
  • ELF32/ELF64 support with little/big endian
  • Address resolver - maps VA to segment, section, file offset, nearest symbol
  • Symbol tables - both .dynsym and .symtab
  • No dependencies - only glibc and <elf.h>

Build

root@kitploit:~
make

Optional: Install libreadline-dev for command history in REPL.

Usage

Interactive Mode

root@kitploit:~
./elfpeek

Quick Mode

root@kitploit:~
./elfpeek /bin/ls           # show headers, sections, symbols
./elfpeek /bin/ls 0x6760    # resolve address

Commands

CommandAliasDescription
open <path>oOpen ELF file
closeClose current file
infoiShow ELF header
sectionssList section headers
phdrpList program headers
entryeShow entry point
symbols [dyn|sym]symDump symbol tables
resolve <addr>rResolve virtual address
dump <.sec|@off> [n]dHex dump (section or offset)
help?Show help
quitqExit

Color Coding

Sections:

  • Green = executable (.text, .plt)
  • Yellow = writable (.data, .bss)
  • Cyan = read-only (.rodata)

Hexdump:

  • Gray = null bytes (00)
  • Green = printable ASCII (20-7E)
  • Red = control characters (01-1F)
  • Yellow = high bytes (80-FF)

Test Binaries

tests/ contains sample ELF files:

FileDescription
elf32_le.bin32-bit little-endian (i386)
elf32_be.bin32-bit big-endian (PowerPC)
elf64_be.bin64-bit big-endian (PowerPC64)
elf64_le_pie.binPIE executable
elf64_le_static.binStatically linked
elf64_le_dynsym_only.binStripped, dynsym only
elf64_le_so.binShared object
elf64_le_segments_only.binNo section headers

TODO

  • relocs command - show relocations
  • got/plt analysis
  • Disassembly with capstone

License

MIT