Examples/

directory
v0.0.0-...-2e0d7c0 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2017 License: MIT

README

vmray examples README

Overview

  • DownloadAnalysesByHash - takes a hash of an sample (md5, sha1, sha2) retrieves analyses for that sample
  • DownloadAnalysis - takes an analysis id and downloads that analysis
  • FindSampleByHash - takes a hash of an sample (md5, sha1, sha2) and provides the vmray sampleId
  • GetAnalysisInfo - takes a sampleId and shows information about available analyses
  • GetJobsInfo - takes no argument, shows information about open/running jobs
  • GetSampleInfo - takes sampleId and provides information about that sample
  • UploadSample - takes a filename as argument, uploads that file to vmray and provides some information about the sample uploaded.

vmray credentials

All example scripts assume that your vmray credentials (email, password) are available as environment variables called VMRAY_EMAIL and VMRAY_PASSWD

So before starting any example you shoud make sure to set these environment variables accordingly.

 export VMRAY_EMAIL="me@mydomain.tld"
 export VMRAY_PASSWD="myVerySecretPassword"

In order to add those variables permanetly to your environment, you can add the two above lines to your ~/.profile file.

Directories

Path Synopsis
vmrDoanloadAnalysesByHash.go - downloads all vmray analyses for a given sample, identified by its hash.
vmrDoanloadAnalysesByHash.go - downloads all vmray analyses for a given sample, identified by its hash.
vmrDownloadAnalysis.go - can be used to download a complete analysis from vmray Example Usage: go run vmrDownloadAnalysis.go -analysis_id=12345
vmrDownloadAnalysis.go - can be used to download a complete analysis from vmray Example Usage: go run vmrDownloadAnalysis.go -analysis_id=12345
vmrFindSample.go - can be used to find a sample by its hash on vmray EXAMPLE USAGE: go run vmrFindSample.go -rsrc="07bd860cf26e56a02bbf1b0ab6874578"
vmrFindSample.go - can be used to find a sample by its hash on vmray EXAMPLE USAGE: go run vmrFindSample.go -rsrc="07bd860cf26e56a02bbf1b0ab6874578"
vmrGetAnalysisInfo.go - take a sample_id and returns information about analysis available for that sample vmrGetAnalysisInfo -sample_id 12345
vmrGetAnalysisInfo.go - take a sample_id and returns information about analysis available for that sample vmrGetAnalysisInfo -sample_id 12345
vmrGetJobsInfo.go - provides information about running jobs on vmray go run vmrGetJobsInfo.go
vmrGetJobsInfo.go - provides information about running jobs on vmray go run vmrGetJobsInfo.go
vmrGetSampleInfo.go - takes a vmray sampleId, provides Information about the sample Usage: vmrGetSampleInfo -sample_id 12345
vmrGetSampleInfo.go - takes a vmray sampleId, provides Information about the sample Usage: vmrGetSampleInfo -sample_id 12345
vmrUploadSample.go - uploads a file for analysis on vmray go run vmrUploadSample.go -f <yourSampleFile.ext> Above example shows how to upload a given file to vmray useing vmrUploadSample.go
vmrUploadSample.go - uploads a file for analysis on vmray go run vmrUploadSample.go -f <yourSampleFile.ext> Above example shows how to upload a given file to vmray useing vmrUploadSample.go

Jump to

Keyboard shortcuts

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