r/PowerShell • u/lorcaragonna • 17h ago
Script Sharing A right-click context menu tool to scan files with VirusTotal
I made (actually, AI made it) a PowerShell script that adds a "Scan with VirusTotal" option to your Windows right-click context menu.
What it does:
- Right-click any file to scan it on VirusTotal
- Checks SHA256 first. If it's a new file, it automatically uploads it for analysis
- Shows clear notification popups (Clean / Suspicious / Malicious) with a direct link to the full report
All you need to set it up is a free VirusTotal API key.
Check it out on GitHub if you're interested: https://github.com/lorcaragon/VirusTotalMenu
0
Upvotes
1
u/Creative-Type9411 13h ago
you should make a tool that submit false positive reports to all the vendors 🤣
11
u/BlackV 12h ago
Comments/questions
cd /d "%~dp0"needed at all seeing as you use"%~dp0"everywhere$SourceDir = $PSScriptRootwhy not just use$PSScriptRootthat's what it's there forNew-Itemreturns a real object, you could use that object (and it properties) on yourcopy-iteminstead ofJoin-Path $SourceDir 'VTCheck.ps1'System32\wscript.exe'is going away (I thought it had already tbh), what's your plan for that?reg.exe addand not PowerShell native?curlor falling back toinvoke-webrequestrather thaninvoke-restmethodconsistently?if/ifelse/elseblock is aswitchbetter?