From 30c2583cc1f77431994808775926bf5bbabe65a7 Mon Sep 17 00:00:00 2001 From: chainski <96607632+chainski@users.noreply.github.com> Date: Thu, 3 Mar 2022 11:13:24 -0500 Subject: [PATCH] Add files via upload --- checksums.txt | 19 +++++++++++++++++++ src.bat | 23 +++++++++++++++++++++++ 2 files changed, 42 insertions(+) create mode 100644 checksums.txt create mode 100644 src.bat diff --git a/checksums.txt b/checksums.txt new file mode 100644 index 0000000..76312ad --- /dev/null +++ b/checksums.txt @@ -0,0 +1,19 @@ +File-Hash-Generator_x64.exe +MD5 checksum: CE5623FF5CC4B992C654AC46E789116C +SHA1 checksum: B0E64B86C970C8A45EB01D3AAE26ACFDAA9E3C28 +SHA256 checksum: 281180F032E9087FCACB2335940255D0FA67AC7DFE6470F443F6848EDD2FFC01 + +File-Hash-Generator_x86.exe +MD5 checksum: 23A9ABB72BC78FB5763E38415B901FBA +SHA1 checksum: 6C2672DB3F45C2E886981F4331E815241E7DDE07 +SHA256 checksum: 1C4606845F2C22AB4E6BC10BC8C832D6E089C6109FFA624D75BD0A8D13448E03 + +File-Hash-Generator_x64.tar.gz +MD5 checksum: 278071C8B59509FC809AB7D066AE0F1E +SHA1 checksum: 2EFAE45585319844C24CAB3E786759B26DC5CF84 +SHA256 checksum: 8555432A1650BD61CF8C16E10B3837D857A225E8238195DBAF1F6249E3DF574A + +File: File-Hash-Generator_x86.tar.gz +MD5 checksum: 27962CBEFF4646577AD8EE80316FE8C5 +SHA1 checksum: DD9990B078740A3B8C835AC458D253DC4CB52357 +SHA256 checksum: A41CF237DD16362FE8F0BCCB52537087EAB173766397D58152391BBEBE017393 diff --git a/src.bat b/src.bat new file mode 100644 index 0000000..7102b79 --- /dev/null +++ b/src.bat @@ -0,0 +1,23 @@ +@echo off +Color 0A & Mode 136,10 +Title GET ( MD2, MD4, MD5, SHA1, SHA256, SHA384, SHA512 ) HASHES from file by drag and drop using Certutil +Set ScriptName=%~nx0 +if "%~1"=="" goto error +Set LogFile=%~nx1_HASHES.txt +If Exist "%LogFile%" Del "%LogFile%" +echo( +SetLocal EnableDelayedExpansion +for %%a in (MD2 MD4 MD5 SHA1 SHA256 SHA384 SHA512) do ( + for /f "skip=1 delims=" %%H in ('CertUtil -hashfile "%~1" %%a ^| findstr /i /v "CertUtil"') do ( set H=%%H) +( echo %%a=!H!) +( echo %%a=!H!)>> "!LogFile!" +) +EndLocal +Timeout /T 1 /NoBreak>nul & Start "" "%LogFile%" & Exit +REM -------------------------------------------------------------------------------------- +:Error +Color 0C & Mode 104,5 +echo( & echo( +echo You should drag and drop a file over this batch file "%ScriptName%" +Timeout /T 5 /nobreak>nul & exit +REM -------------------------------------------------------------------------------------- \ No newline at end of file