Skip to content

Instantly share code, notes, and snippets.

@technion
Created April 23, 2021 01:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save technion/0d30455cae718830f8cf82e571172423 to your computer and use it in GitHub Desktop.
Save technion/0d30455cae718830f8cf82e571172423 to your computer and use it in GitHub Desktop.
Review CSV file from autorunsc.exe a and handle Virustotal detections
$autorunsCsv = "\AutorunsOutput.csv"
$autorunsArray = Import-Csv $autorunsCsv
Foreach ($item in $autorunsArray) {
$detection = $item.'VT detection'
if ($detection -eq "" -or $detection -eq 'Unknown') {
continue
}
Write-Output $detection
if ($detection -notmatch "^0") {
Write-Output "Virustotal Detection on $item"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment