Add files via upload

This commit is contained in:
Eric Conrad
2017-09-07 16:27:31 -04:00
committed by GitHub
parent 9885c1c2bc
commit 341e9dcfcf
2 changed files with 42 additions and 75 deletions

View File

@ -40,15 +40,15 @@ Get-ChildItem $hashdirectory | Foreach-Object{
ElseIf ($VTreport.positives -gt 0){
# File is flagged by Virustotal
$positives=$VTreport.positives
Write-Host " - Hash was detected by " + $positives + " Virustotal scanners`r`n"
Write-Host " - Hash was detected by $positives Virustotal scanners"
if ($positives -eq 1){
Write-Host " - Don't Panic (yet)! There is only one positive, which may be a sign of a false positive.`r`n"
Write-Host " - Check the VirusTotal report for more information.`r`n"
Write-Host " - Don't Panic (yet)! There is only one positive, which may be a sign of a false positive."
Write-Host " - Check the VirusTotal report for more information."
}
Write-Host " - See $hashdirectory\$SHA256.Virustotal for the full report"
Write-Host " - See $hashdirectory\$SHA256.Virustotal for the full report`r`n"
$VTreport | Set-Content "$hashdirectory\$SHA256.Virustotal"
# Rename original hash file, add the Virustotal positive count as a numbered extension
$SHA256.$positives
# $SHA256.$positives
Rename-Item -Path "$hashdirectory\$SHA256" -NewName "$SHA256.$positives"
}
# Wait 15 seconds between submissions, for public Virustotal API keys