VT::API - Perl implementation of VirusTotal Public API
This documentation refers to VT::API version 0.12
use VT::API; # OO-interface. my $api = VT::API->new(key => 'YOUR_PUBLIC_KEY'); # Retrieve a file scan report. # If query successfull hash reference returned. my $res1 = $api->get_file_report('md5/sha1/sha256 or permalink identifier'); # Send and scan a file. my $res2 = $api->scan_file('/file/path'); # Retrieve a URL scan report my $res3 = $api->get_url_report('http://www.example.com/'); # Submit and scan a URL. my $res4 = $api->scan_url('http://www.example.com/'); my $scan_id; if ($res4->{result}) { $scan_id = $res->{scan_id}; } # Make comments on files and URLs. my $res5 = $api->make_comment('file hash or URL', 'Comment', ['tag1', 'tag2']); ...
VT::API provides unofficial OO interface to VirusTotal Public API. Please see the terms of use for more information.
The options bellow are passed through the constructor of interface.
key => Your Key
Your API key. You will find your personal API key in the inbox of your account.
agent => string
Defines a User-Agent. Default is Perl/VT-API.
timeout => value
Timeout value in seconds. The default value is 180.
VT::API methods.
None known at this time.
You can find documentation for this module with the perldoc command.
perldoc VT::API
You can also look for information at:
VirusTotal official website
http://virustotal.com/
VirusTotal terms of use
http://www.virustotal.com/terms.html
Written by Alexander Nusov.
Copyright (C) 2010, Alexander Nusov <alexander.nusov+cpan <at> gmail.com>
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install VT::API, copy and paste the appropriate command in to your terminal.
cpanm
cpanm VT::API
CPAN shell
perl -MCPAN -e shell install VT::API
For more information on module installation, please visit the detailed CPAN module installation guide.