Skip to content

Commit

Permalink
First commit
Browse files Browse the repository at this point in the history
  • Loading branch information
deepzec authored Jul 30, 2018
1 parent 0202ecf commit 37f905f
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions VTscan.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
$Table = @()
$APIKey = '<Put your Virustotal API key here>'

foreach ($Hash in Get-Content 'HashList.txt')
{
Write-Host $Hash
Start-Sleep -s 26
$Body = @{ resource = $Hash; apikey = $APIKey }
$Scan = Invoke-RestMethod -Method 'POST' -Uri 'https://www.virustotal.com/vtapi/v2/file/report' -Body $Body
$Scan.Scans | Get-Member -MemberType NoteProperty | Select-Object -ExpandProperty Name | ForEach-Object { $TableRow = [PSCustomObject]@{ 'Engine' = $_; 'Detected' = $Scan.Scans.$_.Detected; 'Version' = $Scan.Scans.$_.Version; 'Detection' = $Scan.Scans.$_.Result; 'Updated' = $Scan.Scans.$_.Update; 'Hash' = $Hash };
$Table += $TableRow
}
}
$Table | Where-Object {$_.Engine -eq 'TrendMicro'} | Format-Table -AutoSize | Out-File -FilePath Trend_detection.txt
# }

0 comments on commit 37f905f

Please sign in to comment.