Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kkinos/rdelf2json
CLI application for parsing ELF and converting to json
https://github.com/kkinos/rdelf2json
cli elf-parser go json
Last synced: 16 days ago
JSON representation
CLI application for parsing ELF and converting to json
- Host: GitHub
- URL: https://github.com/kkinos/rdelf2json
- Owner: kkinos
- License: apache-2.0
- Created: 2022-01-22T06:43:26.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2022-04-08T16:23:54.000Z (over 2 years ago)
- Last Synced: 2024-06-20T05:23:11.578Z (7 months ago)
- Topics: cli, elf-parser, go, json
- Language: Go
- Homepage:
- Size: 33.2 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# rdelf2json
CLI application for parsing ELF and converting to json
## Install
```bash
go install github.com/kinpoko/rdelf2json@latest
```## Usage
```bash
rdelf2json sample/a.out | jq '.elfheader'
{
"magic": "7f 45 4c 46 2 1 1 0 0 0 0 0 0 0 0 0 ",
"class": "ELF64",
"data": "little endian",
"version": "1",
"type": "A shared object",
"machine": "AMD x86-64",
"entrypoint": "0x1060",
"startofprogramheaders": "64 (bytes)",
"startofsectionheaders": "14712 (bytes)",
"sizeofprogramheaders": "56",
"numberofprogramheaders": "13",
"sizeofsectionheaders": "64",
"numberofsectionheaders": "31",
"sectionheaderstringtableindex": "30"
}
```