fileprocessing

package
v0.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2020 License: LGPL-3.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddFile

func AddFile(sample mdbcommon.NewSample) error

func Entropy

func Entropy(p []byte) float64

func FileTypeIDFromBytes

func FileTypeIDFromBytes(fileContents []byte, config *utils.ServerConfigFile) (int, error)

func HandleExecutable

func HandleExecutable(fileContents []byte, fileID int64, fileTypeID int)

func HandleFileSubmission

func HandleFileSubmission(fileName string, fileContents []byte, fileType int, userID int, sourceID int64)

func HashToBytes

func HashToBytes(sha256Hash string) ([]byte, error)

func HashToPath

func HashToPath(sha256Hash string) string

func RunSDHashBuffer

func RunSDHashBuffer(fileName string, fileContents []byte) string

func RunSDHashPath

func RunSDHashPath(fPath string) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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