api

module
v0.0.0-...-e8a6761 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2024 License: GPL-3.0

README

API

How to use it

curl 200.17.212.244:4000/v1/healthcheck

To check if the api is running.

curl 200.17.212.244:4000/v1/analysis -XPOST -F "template=105" -F "[email protected]"

This will start an analysis using the template 105 and the malware fff351ad66140a5e49eb323c4bf53700.exe and it will return an ID (in this case was 1139bb22-ca7e-44c1-9995-ad0908d3f609, but this is random) that will be used to get information about the analysis.

websocat ws://200.17.212.244:4000/v1/status/1139bb22-ca7e-44c1-9995-ad0908d3f609

This will open a WebSocket connection to get the status in real time.

curl 200.17.212.244:4000/v1/report/1139bb22-ca7e-44c1-9995-ad0908d3f609

After the status is marked as "Completed", you can retrieve the report using this command.

Build instructions

  1. Create api.env
PROXMOX_NODE=
PROXMOX_TOKEN_ID=
PROXMOX_TOKEN_SECRET=
PROXMOX_URL=
  1. Build
mage BuildAndDeploy

or go run mage.go BuildAndDeploy if you don't have mage installed.

You can install mage with go run mage.go EnsureMage.

Directories

Path Synopsis
cmd
api command
internal
analysis
Package analysis is responsable for the malware execution orchestration.
Package analysis is responsable for the malware execution orchestration.
api
Package api provides the interface for the user that wants a malware analysis.
Package api provides the interface for the user that wants a malware analysis.
config
Package config stores relevant application data.
Package config stores relevant application data.
validator
Package validator helps the API validate client input.
Package validator helps the API validate client input.

Jump to

Keyboard shortcuts

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