Skip to content

Commit

Permalink
(maint) Changed how to calculate anti-virus count
Browse files Browse the repository at this point in the history
  • Loading branch information
AdmiringWorm committed Mar 1, 2024
1 parent 80ebe78 commit 8fb1267
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion scripts/private/api/virus-total/Get-VirusTotalResults.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,12 @@ function Get-VirusTotalResults {

Write-Host ([StatusMessages]::virusTotalResultsAvailable)

[int]$antiVirusCount = $stats.malicious + $stats.suspecious + $stats.harmless + $stats.undetected + $stats.timeout + $stats.failure + $stats.'confirmed-timout'

@{
Status = "Found"
Flagged = ($stats.malicious + $stats.suspecious)
TotalCount = $response.data.attributes.last_analysis_results.Count - $stats.'type-unsupported'
TotalCount = $antiVirusCount
Url = "https://www.virustotal.com/gui/file/{0}" -f $checksum
}
}
Expand Down

0 comments on commit 8fb1267

Please sign in to comment.