Skip to content

AnvilELF is a purist object-oriented tool for ELF binary parsing, modification, tracing, and code injection โš’๏ธ๐Ÿ”ฅ

Notifications You must be signed in to change notification settings

dasuos/AnvilELF

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

69 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

AnvilELF โš’๏ธ๐Ÿ”ฅ

CI codecov

From raw bytes to forged ELFโ€”crafted with purist OOP.

AnvilELF is a purist object-oriented tool for ELF binary parsing, modification, tracing, and code injection. It is built with SOLID principles, full test coverage, and a strong focus on maintainability.

AnvilELF CLI in action

๐Ÿš€ Roadmap

Binary Format Process Tracing & Code Injection
โœ… Executable Header ๐Ÿ”„ Process Tracing (ptrace & /proc)
โœ… Section Headers ๐Ÿ”„ Infection Detection
โœ… Sections ๐Ÿ”„ Code Injection
โœ… String & Symbol Tables
๐Ÿ”„ Program Headers
๐Ÿ”„ Segments
๐Ÿ”„ Dynamic Linking & Relocations

โšก Usage

# Show executable header
anvil> header

# List all sections
anvil> sections
anvil> sections --full

# Show a specific section by name
anvil> section --name .shstrtab
anvil> section --name .shstrtab --full

# Disassemble .text section
anvil> text
anvil> text --offset 0 --size 10
# Disassemble .plt section
anvil> plt
# Disassemble .init section
anvil> init
# Disassemble .fini section
anvil> fini

# Exit the shell
anvil> exit

๐Ÿ— Development

๐Ÿ Installation

git clone https://github.com/dasuos/AnvilELF.git
cd AnvilELF
make install

โœ… Code quality & testing

To verify code formatting, linting, type safety, and run all tests, use:

make check

๐Ÿ› ๏ธ Auto-fixing code

To automatically format and fix code style issues, run:

make fix

๐Ÿงน Clean up

To remove the container and Docker image:

make clean