Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: 3 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 (9 months ago)
- Default Branch: main
- Last Pushed: 2024-05-12T08:18:43.000Z (9 months ago)
- Last Synced: 2024-10-11T22:50:28.579Z (4 months ago)
- Topics: binary, elf, elf-parser, parser, reverse-engineering, swift, symbols
- Language: Swift
- Homepage:
- Size: 227 KB
- Stars: 14
- Watchers: 2
- Forks: 1
- 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.
[![Github issues](https://img.shields.io/github/issues/p-x9/ELFKit)](https://github.com/p-x9/ELFKit/issues)
[![Github forks](https://img.shields.io/github/forks/p-x9/ELFKit)](https://github.com/p-x9/ELFKit/network/members)
[![Github stars](https://img.shields.io/github/stars/p-x9/ELFKit)](https://github.com/p-x9/ELFKit/stargazers)
[![Github top language](https://img.shields.io/github/languages/top/p-x9/ELFKit)](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)