Gomalshare
Go library MalShare API
Install / Use
/learn @MonaxGT/GomalshareREADME
MalShare client library
MalShare is a free Malware repository providing researchers access to samples, malicous feeds, and Yara results. Link to Malshare:
Usage example
go get -u github.com/MonaxGT/gomalshare
go test -api APIKEY -url URL
Simple example using library in cmd/gomalshare/main.go
package main
import (
"flag"
"fmt"
"github.com/MonaxGT/gomalshare"
)
func main() {
apiKeyPtr := flag.String("api", "", "API key MalShare")
urlPtr := flag.String("url", "", "URL MalShare")
flag.Parse()
var err error
var conf *gomalshare.Client
// init function
conf, err = gomalshare.New(*apiKeyPtr, *urlPtr) // Initiate new connection to API
if err != nil {
panic(err)
}
// example with return list of hashes last 24 hours
var list24 *[]gomalshare.HashList
list24, _ = conf.GetListOfHash24()
fmt.Println(list24)
// example with return list of types of downloading files last 24 hours
typeCount, _ := conf.GetListOfTypesFile24()
fmt.Println(typeCount)
// example with return current api key limit
var limitKey *gomalshare.LimitKey
limitKey, _ = conf.GetLimitKey()
fmt.Println(limitKey)
// example with return information of files by using sample
var search *[]gomalshare.SearchDetails
search, err = conf.GetSearchResult("emotet")
if err != nil {
fmt.Println(err)
}
for _, v := range *search {
fmt.Println(v.Md5)
}
// example upload file
filename := "test.test"
err = conf.UploadFile(filename)
if err != nil {
fmt.Println(err)
}
// example for download file by hash request
file, err := conf.DownloadFileFromHash("95bc3d64f49b03749427fcd6601fa8a7")
if err != nil {
fmt.Println(err)
}
fmt.Println(string(file))
}
Related Skills
node-connect
326.5kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
xurl
326.5kA CLI tool for making authenticated requests to the X (Twitter) API. Use this skill when you need to post tweets, reply, quote, search, read posts, manage followers, send DMs, upload media, or interact with any X API v2 endpoint.
frontend-design
80.4kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
326.5kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
