gopBin

package
v0.0.0-...-a204f0a Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetEntropy

func GetEntropy(data []byte) float64

func GetPECaves

func GetPECaves(filename string, minCaveSize int) error

Types

type Entropy

type Entropy interface {
	ParseBytes(string) error
	ComputeEntropy() float64
	PrintEntropy()
}

func GetFileEntropyHandle

func GetFileEntropyHandle(filename string) (Entropy, error)

Entry point

type File

type File struct {
	Name    string
	Content []byte
}

func (*File) ComputeEntropy

func (f *File) ComputeEntropy() float64

func (*File) ParseBytes

func (f *File) ParseBytes(filename string) error

func (*File) PrintEntropy

func (f *File) PrintEntropy()

type PEFile

type PEFile struct {
	File
	Sections map[string][]byte
}

type SimpleFile

type SimpleFile struct {
	File
}

Jump to

Keyboard shortcuts

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