Add virus total lookup script

This commit is contained in:
doylet 2024-02-25 18:39:34 +11:00
parent b6c688292a
commit 33048592a6

View File

@ -0,0 +1,13 @@
@echo off
:: Check if an argument is provided
if "%~1"=="" (
echo Usage: %0 FILE_PATH
exit /b
)
:: Calculate SHA256 hash using PowerShell and store it in a variable
for /f "delims=" %%a in ('powershell -Command "(Get-FileHash \"%~1\" -Algorithm SHA256).Hash"') do set HASH=%%a
:: Open browser with VirusTotal URL
start https://www.virustotal.com/gui/file/%HASH%