8000 GitHub - saferwall/elf at v0.3.0
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
/ elf Public

💎 Go library to parse Executable and Linkable Format (ELF) files.

License

Notifications You must be signed in to change notification settings

saferwall/elf

Repository files navigation

ELF File Format Parser


codecov build-test

elf is a lightweight ✨ ELF parser designed for static analysis.

Install

You can install the elf package and its dependencies using the go get command.

go get github.com/saferwall/elf

Usage

package main

import (
	"encoding/json"
	"fmt"

	"github.com/saferwall/elf"
)


func main() {

	p, err := elf.New("/bin/ls")
	defer p.CloseFile()
	if err != nil {
		panic(err)
	}
	err = p.Parse()
	if err != nil {
		panic(err)
	}
	jsonFile, err := p.DumpJSON()
	if err != nil {
		panic(err)
	}
	fmt.Println(jsonFile)
}

Docs & API

🚧

0