https://github.com/p-x9/elfkit
🔬 A Swift library for parsing ELF files to obtain various information.
https://github.com/p-x9/elfkit
binary elf elf-parser parser reverse-engineering swift symbols
Last synced: 7 months ago
JSON representation
🔬 A Swift library for parsing ELF files to obtain various information.
- Host: GitHub
- URL: https://github.com/p-x9/elfkit
- Owner: p-x9
- License: mit
- Created: 2024-04-26T10:09:37.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2025-06-20T14:57:27.000Z (7 months ago)
- Last Synced: 2025-07-05T18:54:03.953Z (7 months ago)
- Topics: binary, elf, elf-parser, parser, reverse-engineering, swift, symbols
- Language: Swift
- Homepage: https://p-x9.github.io/ELFKit/documentation/elfkit/
- Size: 344 KB
- Stars: 26
- Watchers: 3
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ELFKit
Library for parsing ELF files to obtain various information.
[](https://github.com/p-x9/ELFKit/issues)
[](https://github.com/p-x9/ELFKit/network/members)
[](https://github.com/p-x9/ELFKit/stargazers)
[](https://github.com/p-x9/ELFKit/)
## Features
- parse segments
- parse sections
- parse dynamics
- symbol list
- get all cstrings
- rebase infos
- notes
- ...
## Usage
### Load from file
For reading from file, use the `ELFFile` structure.
Reading from a file can be as follows.
```swift
let path = "Path to MachO file"
let url = URL(string: path)
let elf = try ELFFile(url: url)
```
### Example Codes
There are a variety of uses, but most show a basic example that prints output to the Test directory.
#### Load from file
The following file contains sample code.
[ELFFilePrintTests](./Tests/ELFKitTests/ELFFilePrintTests.swift)
## Related Projects
- [MachOKit](https://github.com/p-x9/MachOKit)
A swift library for parsing MachO binaries
## License
ELFKit is released under the MIT License. See [LICENSE](./LICENSE)