Documentation ¶
Index ¶
- func Base64DecodeContent(buf *string) (*bytes.Buffer, error)
- func DownloadSample(hash string, apiKey string) (types.SampleState, error)
- func DumpRaw(states types.SampleState, hash string) error
- func DumpZip(states types.SampleState, hash string, outZip string) error
- func GetActorName(inputActor string, apikey string) (string, error)
- func GetFamilyName(inputFamily string, apikey string) (string, error)
- func HttpGetQuery(p types.Endpoint, apiKey string) ([]byte, error)
- func HttpMultipartFileUpload(p types.Endpoint, apiKey string, body io.Reader, filename string) ([]byte, error)
- func HttpRawFileUpload(p types.Endpoint, apiKey string, body io.Reader, filename string) ([]byte, error)
- func IsAPIKeyValid(key string) bool
- func PrettyPrintJson(buf []byte) error
- func Unzip(src string, dest string) error
- type Hash
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DownloadSample ¶ added in v0.2.0
func DownloadSample(hash string, apiKey string) (types.SampleState, error)
Download will take in a single hash and return potentially multiple states of the sample
func DumpRaw ¶ added in v0.2.0
func DumpRaw(states types.SampleState, hash string) error
DumpRaw will take the malware states object and dump all the files to the current directory
func DumpZip ¶ added in v0.2.0
func DumpZip(states types.SampleState, hash string, outZip string) error
DumpZip will take the malware states object and dump a single zip file to disk that contains all of the samples
func HttpMultipartFileUpload ¶
func HttpRawFileUpload ¶
func IsAPIKeyValid ¶ added in v0.2.0
IsAPIKeyValid is a convenience function to check if there is an api key value
func PrettyPrintJson ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.