Skip to content

Commit

Permalink
Update UploadToVirusTotal.cmd
Browse files Browse the repository at this point in the history
  • Loading branch information
sdottaka committed Dec 24, 2023
1 parent 6fdf032 commit 88b55f2
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions UploadToVirusTotal.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,7 @@ set DISTDIR=.\Build\Releases
call Tools\Scripts\URLFileSizeSHA256.cmd

for /F "delims=" %%f in ('type "%DISTDIR%\files.txt"') do (
echo %%f | findstr /v /c:"-pdb.7z" && (
"%ProgramFiles(x86)%\VirusTotalUploader2\VirusTotalUploader2.2.exe" %%f
timeout 30
)
echo %%f | findstr /v /c:"-pdb.7z" && (call :upload %%f) && timeout 30
)

@echo off
Expand All @@ -17,3 +14,12 @@ for /F "delims=" %%f in ('type "%DISTDIR%\files.txt"') do (
for /F %%h in ('certutil -hashfile %%f SHA256 ^| findstr -v SHA256 ^| findstr -v hash') do echo %%~nxf: https://www.virustotal.com/en/file/%%h/analysis/
)

goto :eof

:upload
if exist "%ProgramFiles(x86)%\VirusTotalUploader2\VirusTotalUploader2.2.exe" (
"%ProgramFiles(x86)%\VirusTotalUploader2\VirusTotalUploader2.2.exe" %1
) else (
"%ProgramFiles(x86)%\Samuel Tulach\VirusTotalUploader\uploader.exe" "%CD%\%~1"
)
goto :eof

0 comments on commit 88b55f2

Please sign in to comment.