nao-sec/anyrun-api

ANY.RUN API Wrapper for PHP

v0.1 2019-05-21 08:28 UTC

This package is auto-updated.

Last update: 2024-04-21 20:01:27 UTC


README

Official document is https://any.run/api-documentation/

Requirement

  • PHP (>= 7.0)
    • PHP-cURL
  • Composer

Setup

$ composer require nao-sec/anyrun-api

Usage

require_once 'vendor/autoload.php';
// API Key
$anyrun = new ANYRUN\Client('API Key');

// Basic Auth
$anyrun = new ANYRUN\Client('Username', 'Password');

Get history

print_r($anyrun->get_history());

Get report

print_r($anyrun->get_report('AAAAAAAA-BBBB-CCCC-DDDD-EEEEEEEEEEEE'));

Run new analysis

// // file
print_r($anyrun->post_analysis('aaa.bin', ['obj_type' => 'file']));

// // url
print_r($anyrun->post_analysis("https://example.com", ['obj_type' => 'url']));

// // download url
print_r($anyrun->post_analysis("http://127.0.0.1/bbb.exe", ['obj_type' => 'download']));

Request aavairable environment

print_r($anyrun->get_env());

Request user's limits

print_r($anyrun->get_limits());

LICENSE

This library is open-sourced software licensed under the MIT License