nao-sec/anyrun-api

PHP的ANY.RUN API包装器

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

This package is auto-updated.

Last update: 2024-09-21 20:56:36 UTC


README

官方文档是 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());

LICENSE

此库是开源软件,受MIT许可许可。