demonslay335 / cuckoo-api
Cuckoo Sandbox PHP Wrapper
dev-master
2017-01-12 17:18 UTC
Requires
- php: >=5.3.0
- guzzlehttp/guzzle: ^6.2.0
Requires (Dev)
- phpunit/phpunit: >=4.0
This package is not auto-updated.
Last update: 2025-01-19 03:10:13 UTC
README
PHP wrapper for Cuckoo Sandbox API.
API wrapper baseline code borrowed from VirusTotal API.
Usage
- Install via composer (http://getcomposer.org/)
Include the following in your composer.json
{ "require": { "demonslay335/cuckoo-api": "master" } }
composer update
Quick Start
<?php
require_once('vendors/autoload.php');
$apiUrl = 'your_cuckoo_api_url';
$file = new Cuckoo\File($apiUrl);
$resp = $file->scan('path/to/executable.exe');
var_dump($resp);
?>
Sample output:
array(3) {
["status"] =>
string(5) "added"
["sha256"] =>
string(64) "14ebd45fc9162f8afc4fd10186a46d2fb9844bf27b9d3217fd9fdb4107f17acd"
["uuid"] =>
string(43) "YWFmYTEwYTIwZjkwNDdiYWJjMmU1MWQ2ZjY1MWU3OTY"
}
Tests
phpunit --configuration tests/conf/phpunit.xml tests