PHP code example of nao-sec / anyrun-api

1. Go to this page and download the library: Download nao-sec/anyrun-api library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

nao-sec / anyrun-api example snippets



// 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());