malwarebazaar

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2023 License: BSD-3-Clause Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Source = "malwarebazaar"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Fetcher

type Fetcher struct {
	Endpoint string
	ApiKey   string
}

func NewFetcher

func NewFetcher() *Fetcher

func (*Fetcher) BasicRequest

func (f *Fetcher) BasicRequest(form url.Values) (*http.Response, error)

func (*Fetcher) Download

func (f *Fetcher) Download(sha256Hash string) (io.ReadCloser, error)

Download downloads a sample via the API. It is triggered by the `get` command and returns an error on failure

func (*Fetcher) GetRecent

func (f *Fetcher) GetRecent()

type Item

type Item struct {
	FileName   string `json:"file_name"`
	FileType   string `json:"file_type"`
	FileSize   uint   `json:"file_size"`
	Signature  string `json:"signature"`
	FirstSeen  string `json:"first_seen"`
	Sha256Hash string `json:"sha256_hash"`
}

type Response

type Response struct {
	QueryStatus string `json:"query_status"`
	Data        []Item `json:"data"`
}

Jump to

Keyboard shortcuts

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