https://github.com/markkreel/elf-disassembler
ELF parser and disassembler written in C++.
https://github.com/markkreel/elf-disassembler
assembly cpp disassembler elf elf-parser
Last synced: 12 months ago
JSON representation
ELF parser and disassembler written in C++.
- Host: GitHub
- URL: https://github.com/markkreel/elf-disassembler
- Owner: Markkreel
- Created: 2025-02-18T09:26:57.000Z (12 months ago)
- Default Branch: master
- Last Pushed: 2025-02-22T13:51:08.000Z (12 months ago)
- Last Synced: 2025-02-22T14:36:30.274Z (12 months ago)
- Topics: assembly, cpp, disassembler, elf, elf-parser
- Language: C++
- Homepage:
- Size: 7.81 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ELF Parser & Disassembler
A simple ELF file disassembler that reads executable files and converts machine code into human-readable assembly code.
## Project Status
Currently in early development. The project can:
- Parse ELF files
- Extract the .text section (which contains the program code)
## Prerequisites
- C++ compiler with C++17 support
- CMake (version 3.10 or higher)
- libelf development package
### Installing Prerequisites
On Ubuntu/Debian:
```bash
sudo apt-get install build-essential cmake libelf-dev
```
## Building the Project
```bash
mkdir build
cd build
cmake ..
make
```
## Usage
```bash
./disassembler
```
### Project Structure
```
disassembler/
├── src/ # Source code files
│ ├── main.cpp # Main entry point
│ ├── elf_parser.cpp # ELF file parsing code
│ ├── elf_parser.h # Header for ELF parser
├── include/ # External library headers
├── lib/ # External libraries
├── build/ # Compiled binaries
├── test/ # Test files
│ └── test_files/ # Sample ELF files for testing
├── CMakeLists.txt # Build configuration
└── README.md # Project documentation
```
**Last updated:** 22-02-2025 ⸺ **Last checked:** 22-05-2025