From 33048592a64ce6aa13dff3467b7f74b0330d1051 Mon Sep 17 00:00:00 2001 From: doylet Date: Sun, 25 Feb 2024 18:39:34 +1100 Subject: [PATCH] Add virus total lookup script --- Win/Scripts/virustotal_lookup.bat | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 Win/Scripts/virustotal_lookup.bat diff --git a/Win/Scripts/virustotal_lookup.bat b/Win/Scripts/virustotal_lookup.bat new file mode 100644 index 0000000..3eb7eea --- /dev/null +++ b/Win/Scripts/virustotal_lookup.bat @@ -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%