funcs

package
v0.0.0-...-170c063 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (

	// windows HEaders
	//MZ Format
	ImageMZSignature    = "4d5a"
	ImageZMSignature    = "5a4d"
	ImageOS2Signature   = "454e"
	ImageOS2LESignature = "454c"
	ImageVXDSignature   = "584c"
	ImageTESignature    = "5a56"
	ImageNTSignature    = "00004550" // PE00
)

Variables

This section is empty.

Functions

func Entropy

func Entropy(path string) (entropy float64, err error)

Calculates entropy of a file.

func HashMD5

func HashMD5(path string) (hash string, err error)

Generates MD5 hash of a file

func HashSHA1

func HashSHA1(path string) (hash string, err error)

Generates SHA1 hash of a file

func HashSHA256

func HashSHA256(path string) (hash string, err error)

Generates SHA256 hash of a file

func HashSHA512

func HashSHA512(path string) (hash string, err error)

Generates SHA512 hash of a file

func IsElfType

func IsElfType(path string) (isElf bool, err error)

Pass in a path and we'll see if the magic number is Linux ELF type.

Types

This section is empty.

Jump to

Keyboard shortcuts

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