Skip to content

nao-sec/anyrun-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

ANY.RUN API Wrapper for PHP

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