Official document is https://any.run/api-documentation/
- PHP (>= 7.0)
- PHP-cURL
- Composer
$ composer require nao-sec/anyrun-api
require_once 'vendor/autoload.php';
// API Key
$anyrun = new ANYRUN\Client('API Key');
// Basic Auth
$anyrun = new ANYRUN\Client('Username', 'Password');
print_r($anyrun->get_history());
print_r($anyrun->get_report('AAAAAAAA-BBBB-CCCC-DDDD-EEEEEEEEEEEE'));
// // 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']));
print_r($anyrun->get_env());
print_r($anyrun->get_limits());
This library is open-sourced software licensed under the MIT License