use NormanHuth\VirusTotal\VirusTotal;
$client = new VirusTotal($apiKey, $httpErrors = false, $timeout = 0);
$upload = $client->scanFile('/path/to-file');
$analysisId = $upload['data']['id'];
$result = $client->analyseUrlOrFile($analysisId);
use NormanHuth\VirusTotal\VirusTotal;
$client = new VirusTotal($apiKey, $httpErrors = false, $timeout = 0);
$url = $client->scanURL('https://huth.it/coffee');
$analysisId = $url['data']['id']
$result = $client->analyseUrlOrFile($analysisId);
use NormanHuth\VirusTotal\VirusTotal;
$client = new VirusTotal($apiKey, $httpErrors = false, $timeout = 0);
$result = $client->scanDomain('/path/to-file');
return $result['data'];
Reference: https://developers.virustotal.com/reference/ip-info
$client = new VirusTotal($apiKey, $httpErrors = false, $timeout = 0);
$client->getAnIPAddressReport(string $ip): array
Reference: https://developers.virustotal.com/reference/ip-comments-get
$client = new VirusTotal($apiKey, $httpErrors = false, $timeout = 0);
$client->getCommentsOnAnIPAddress(string $ip, ?string $cursor, int $limit): array
Reference: https://developers.virustotal.com/reference/ip-comments-post
$client = new VirusTotal($apiKey, $httpErrors = false, $timeout = 0);
$client->addACommentToAnIPAddress(string $ip, string $text): array
Reference: https://developers.virustotal.com/reference/ip-relationships
$client = new VirusTotal($apiKey, $httpErrors = false, $timeout = 0);
$client->getObjectsRelatedToAnIPAddress(string $ip, string $relationship, ?string $cursor, int $limit): array
Reference: https://developers.virustotal.com/reference/ip-relationships-ids
$client = new VirusTotal($apiKey, $httpErrors = false, $timeout = 0);
$client->getObjectDescriptorsRelatedToAnIPAddress(string $ip, string $relationship, ?string $cursor, int $limit): array
Reference: https://developers.virustotal.com/reference/ip-votes
$client = new VirusTotal($apiKey, $httpErrors = false, $timeout = 0);
$client->getVotesOnAnIPAddress(string $ip): array
Reference: https://developers.virustotal.com/reference/ip-votes-post
$client = new VirusTotal($apiKey, $httpErrors = false, $timeout = 0);
$client->addAVoteToAnIPAddress(string $ip, string $verdict): array
Reference: https://developers.virustotal.com/reference/domain-info
$client = new VirusTotal($apiKey, $httpErrors = false, $timeout = 0);
$client->getADomainReport(string $domain): array
Reference: https://developers.virustotal.com/reference/domains-comments-get
$client = new VirusTotal($apiKey, $httpErrors = false, $timeout = 0);
$client->getCommentsOnADomain(string $domain, ?string $cursor, int $limit): array
Reference: https://developers.virustotal.com/reference/domains-comments-post
$client = new VirusTotal($apiKey, $httpErrors = false, $timeout = 0);
$client->addACommentToADomain(string $domain, string $text): array
Reference: https://developers.virustotal.com/reference/domains-relationships
$client = new VirusTotal($apiKey, $httpErrors = false, $timeout = 0);
$client->getObjectsRelatedToADomain(string $domain, string $relationship, ?string $cursor, int $limit): array
Reference: https://developers.virustotal.com/reference/domains-relationships-ids
$client = new VirusTotal($apiKey, $httpErrors = false, $timeout = 0);
$client->getObjectDescriptorsRelatedToADomain(string $domain, string $relationship, ?string $cursor, int $limit): array
Reference: https://developers.virustotal.com/reference/get-resolution-by-id
$client = new VirusTotal($apiKey, $httpErrors = false, $timeout = 0);
$client->getADNSResolutionObject(string $id): array
Reference: https://developers.virustotal.com/reference/domains-votes-get
$client = new VirusTotal($apiKey, $httpErrors = false, $timeout = 0);
$client->getVotesOnADomain(string $domain): array
Reference: https://developers.virustotal.com/reference/domain-votes-post
$client = new VirusTotal($apiKey, $httpErrors = false, $timeout = 0);
$client->addAVoteToADomain(string $domain, string $verdict): array
Reference: https://developers.virustotal.com/reference/files-scan
$client = new VirusTotal($apiKey, $httpErrors = false, $timeout = 0);
$client->uploadAFile(string $file, ?string $password): array
Reference: https://developers.virustotal.com/reference/files-upload-url
$client = new VirusTotal($apiKey, $httpErrors = false, $timeout = 0);
$client->getAURLForUploadingLargeFiles(): array
Reference: https://developers.virustotal.com/reference/files-upload-url
$client = new VirusTotal($apiKey, $httpErrors = false, $timeout = 0);
$client->uploadALargeFile(string $url, string $file, ?string $password): array
Reference: https://developers.virustotal.com/reference/files-analyse
$client = new VirusTotal($apiKey, $httpErrors = false, $timeout = 0);
$client->requestAFileRescan(string $id): array
Reference: https://developers.virustotal.com/reference/files-download-url
$client = new VirusTotal($apiKey, $httpErrors = false, $timeout = 0);
$client->getAFilesDownloadURL(string $id): array
Reference: https://developers.virustotal.com/reference/files-download
$client = new VirusTotal($apiKey, $httpErrors = false, $timeout = 0);
$client->downloadAFile(string $id, string $target): \Psr\Http\Message\ResponseInterface
Reference: https://developers.virustotal.com/reference/files-comments-get
$client = new VirusTotal($apiKey, $httpErrors = false, $timeout = 0);
$client->getCommentsOnAFile(string $id, ?string $cursor, int $limit): array
Reference: https://developers.virustotal.com/reference/ip-comments-post
$client = new VirusTotal($apiKey, $httpErrors = false, $timeout = 0);
$client->addACommentToAFile(string $id, string $text): array
Reference: https://developers.virustotal.com/reference/files-relationships
$client = new VirusTotal($apiKey, $httpErrors = false, $timeout = 0);
$client->getObjectsRelatedToAFile(string $id, string $relationship, ?string $cursor, int $limit): array
Reference: https://developers.virustotal.com/reference/files-relationships-ids
$client = new VirusTotal($apiKey, $httpErrors = false, $timeout = 0);
$client->getObjectDescriptorsRelatedToAFile(string $id, string $relationship, ?string $cursor, int $limit): array
Reference: https://developers.virustotal.com/reference/get-sigma-rules
$client = new VirusTotal($apiKey, $httpErrors = false, $timeout = 0);
$client->getACrowdsourcedSigmaRuleObject(string $id): array
Reference: https://developers.virustotal.com/reference/get-yara-rulesets
$client = new VirusTotal($apiKey, $httpErrors = false, $timeout = 0);
$client->getACrowdsourcedYARARuleset(string $id): array
Reference: https://developers.virustotal.com/reference/files-votes-get
$client = new VirusTotal($apiKey, $httpErrors = false, $timeout = 0);
$client->getVotesOnAFile(string $id): array
Reference: https://developers.virustotal.com/reference/files-votes-post
$client = new VirusTotal($apiKey, $httpErrors = false, $timeout = 0);
$client->addAVoteOnAFile(string $id, string $verdict): array
Reference: https://developers.virustotal.com/reference/scan-url
$client = new VirusTotal($apiKey, $httpErrors = false, $timeout = 0);
$client->scanURL(string $url): array
Reference: https://developers.virustotal.com/reference/url-info
$client = new VirusTotal($apiKey, $httpErrors = false, $timeout = 0);
$client->getAURLAnalysisReport(string $id): array
Reference: https://developers.virustotal.com/reference/urls-analyse
$client = new VirusTotal($apiKey, $httpErrors = false, $timeout = 0);
$client->requestAURLRescan(string $id): array
Reference: https://developers.virustotal.com/reference/urls-comments-get
$client = new VirusTotal($apiKey, $httpErrors = false, $timeout = 0);
$client->getCommentsOnAURL(string $id, ?string $cursor, int $limit): array
Reference: https://developers.virustotal.com/reference/urls-comments-post
$client = new VirusTotal($apiKey, $httpErrors = false, $timeout = 0);
$client->addACommentOnAURL(string $ip, string $text): array
Reference: https://developers.virustotal.com/reference/urls-relationships
$client = new VirusTotal($apiKey, $httpErrors = false, $timeout = 0);
$client->getObjectsRelatedToAURL(string $id, string $relationship, ?string $cursor, int $limit): array
Reference: https://developers.virustotal.com/reference/ip-relationships-ids
$client = new VirusTotal($apiKey, $httpErrors = false, $timeout = 0);
$client->getObjectDescriptorsRelatedToAURL(string $id, string $relationship, ?string $cursor, int $limit): array
Reference: https://developers.virustotal.com/reference/urls-votes-get
$client = new VirusTotal($apiKey, $httpErrors = false, $timeout = 0);
$client->getVotesOnAURL(string $id): array
Reference: https://developers.virustotal.com/reference/urls-votes-post
$client = new VirusTotal($apiKey, $httpErrors = false, $timeout = 0);
$client->addAVoteOnAURL(string $id, string $verdict): array
Reference: https://developers.virustotal.com/reference/get-comments
$client = new VirusTotal($apiKey, $httpErrors = false, $timeout = 0);
$client->getLatestComments(?string $filter, ?string $cursor, int $limit): array
Reference: https://developers.virustotal.com/reference/get-comment
$client = new VirusTotal($apiKey, $httpErrors = false, $timeout = 0);
$client->getACommentObject(string $id, ?string $relationships): array
Reference: https://developers.virustotal.com/reference/comment-id-patch
$client = new VirusTotal($apiKey, $httpErrors = false, $timeout = 0);
$client->updateAComment(string $id, mixed $data): array
Reference: https://developers.virustotal.com/reference/comment-id-delete
$client = new VirusTotal($apiKey, $httpErrors = false, $timeout = 0);
$client->deleteAComment(string $id): array
Reference: https://developers.virustotal.com/reference/comments-relationships
$client = new VirusTotal($apiKey, $httpErrors = false, $timeout = 0);
$client->getObjectsRelatedToAComment(string $id, string $relationship): array
Reference: https://developers.virustotal.com/reference/comments-relationships-ids
$client = new VirusTotal($apiKey, $httpErrors = false, $timeout = 0);
$client->getObjectDescriptorsRelatedToAComment(string $id, string $relationship, ?string $cursor, int $limit): array
Reference: https://developers.virustotal.com/reference/vote-comment
$client = new VirusTotal($apiKey, $httpErrors = false, $timeout = 0);
$client->addAVoteToAComment(string $id, mixed $data): array
Reference: https://developers.virustotal.com/reference/analysis
$client = new VirusTotal($apiKey, $httpErrors = false, $timeout = 0);
$client->getAURLOrFileAnalysis(string $id): array
Reference: https://developers.virustotal.com/reference/analysesidrelationship-1
$client = new VirusTotal($apiKey, $httpErrors = false, $timeout = 0);
$client->getObjectsRelatedToAnAnalysis(string $id, string $relationship): array
Reference: https://developers.virustotal.com/reference/analysesidrelationshipsrelationship-1
$client = new VirusTotal($apiKey, $httpErrors = false, $timeout = 0);
$client->getObjectDescriptorsRelatedToAnAnalysis(string $id, string $relationship): array
Reference: https://developers.virustotal.com/reference/get-submission
$client = new VirusTotal($apiKey, $httpErrors = false, $timeout = 0);
$client->getASubmissionObject(string $id): array
Reference: https://developers.virustotal.com/reference/get-operations-id
$client = new VirusTotal($apiKey, $httpErrors = false, $timeout = 0);
$client->getAnOperationObject(string $id): array
Reference: https://developers.virustotal.com/reference/attack_tacticsid
$client = new VirusTotal($apiKey, $httpErrors = false, $timeout = 0);
$client->getAnAttackTacticObject(string $id): array
Reference: https://developers.virustotal.com/reference/attack_tacticsidrelationship
$client = new VirusTotal($apiKey, $httpErrors = false, $timeout = 0);
$client->getObjectsRelatedToAnAttackTactic(string $id, string $relationship, ?string $cursor, int $limit): array
Reference: https://developers.virustotal.com/reference/attack_tacticsidrelationshipsrelationship
$client = new VirusTotal($apiKey, $httpErrors = false, $timeout = 0);
$client->getObjectDescriptorsRelatedToAnAttackTactic(string $id, string $relationship, ?string $cursor, int $limit): array
Reference: https://developers.virustotal.com/reference/attack_techniqueid
$client = new VirusTotal($apiKey, $httpErrors = false, $timeout = 0);
$client->getAnAttackTechniqueObject(string $id): array
Reference: https://developers.virustotal.com/reference/attack_techniqueidrelationship
$client = new VirusTotal($apiKey, $httpErrors = false, $timeout = 0);
$client->getObjectsRelatedToAnAttackTechnique(string $id, string $relationship, ?string $cursor, int $limit): array
Reference: https://developers.virustotal.com/reference/attack_techniquesidrelationshipsrelationship
$client = new VirusTotal($apiKey, $httpErrors = false, $timeout = 0);
$client->getObjectDescriptorsRelatedToAnAttackTechnique(string $id, string $relationship, ?string $cursor, int $limit): array
Reference: https://developers.virustotal.com/reference/popular_threat_categories
$client = new VirusTotal($apiKey, $httpErrors = false, $timeout = 0);
$client->getAListOfPopularThreatCategories(): array