elf

package
v0.0.0-...-b5cef0e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 26, 2021 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Info

type Info struct {
	Machine  string              `json:"machine"`
	Segments []Segment           `json:"segments,omitempty"`
	Sections []Section           `json:"sections,omitempty"`
	Imports  map[string][]string `json:"imports,omitempty"`
	Exports  []string            `json:"exports,omitempty"`
	Packer   string              `json:"packer,omitempty"`
	Telfhash string              `json:"telfhash,omitempty"`
}

Info contains high level fingerprinting an analysis of a mach-o file.

func Parse

func Parse(r io.ReaderAt) (*Info, error)

Parse parses the elf file and returns information about it or errors.

type Section

type Section struct {
	Name      string  `json:"name"`
	Type      string  `json:"type"`
	Address   uint64  `json:"address"`
	Size      uint64  `json:"size"`
	Offset    uint64  `json:"offset"`
	Entropy   float64 `json:"entropy"`
	ChiSquare float64 `json:"chi2"`
	Flags     string  `json:"flags"`
	MD5       string  `json:"md5,omitempty"`
}

Section contains information about a section in a mach-o file.

type Segment

type Segment struct {
	Name     string   `json:"name"`
	Sections []string `json:"sections"`
}

Segment represents a program segment

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL