vmray api module for go
Go
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
Examples
README.md
TlsCertReadme.md
vmray.go

README.md

VmRay API module for go

vmray.go allows to communicate with the API of VmRay.

VmRay is a 3rd generation malware execution and analysis environment. For more Information see VmRay Website

Disclaimers

This code is based on the old API of VmRay. Since beginning of 2016 or version 1.9 of VmRay there is a new API which is not yet covered in this code. See Issue #1

Usage

Go and get the code

go get github.com/scusi/vmray

Here is a short and very simple example how to use this module to upload a file to an vmray instance via the (old) API.

// vmray simple upload example
package main

import(
    "os"
    "fmt"
    "github.com/scusi/vmray"
)

func main() {
    fileName := os.Args[1]
    client, err := vmray.New(
        vmray.SetBasicAuth(os.Getenv("VMRAY_EMAIL"), os.Getenv("VMRAY_PASSWD"))
    )
    result, err := client.UploadSample(fileName)
    if err != nil {
        panic(err)
    }
    fmt.Printf("%s\n", result)
}

Documentation

GoDoc

Documentation is available on GoDoc

For TLS certificate issues please see TlsCertReadme.md

Examples

Please see the Examples directory for some examples how to use this module and it's features.

Commits

If you want to commit to this code feel free to send me pull requests. I prefer lots of small commits that do change one thing rather than one huge commit with a dozen of changes hard to follow.

Author

This module has been written by Florian 'scusi' Walther.