mirror of
https://github.com/autistic-symposium/sec-pentesting-toolkit.git
synced 2025-05-19 07:00:25 -04:00
add a script
This commit is contained in:
parent
58bd787cc3
commit
7ae6b4572f
1 changed files with 16 additions and 0 deletions
16
Other_Hackings/check_checksum.sh
Executable file
16
Other_Hackings/check_checksum.sh
Executable file
|
@ -0,0 +1,16 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# usage:
|
||||||
|
# ./check_checksum.sh <file> <hash>
|
||||||
|
|
||||||
|
filehash=`md5 -q $1`
|
||||||
|
|
||||||
|
echo "Checking file: $1, calculated as $filehash"
|
||||||
|
echo "Using MD5 file: $2"
|
||||||
|
|
||||||
|
if [ $filehash != $2 ]
|
||||||
|
then
|
||||||
|
echo "MD5 sums mismatch!!!"
|
||||||
|
else
|
||||||
|
echo "Checksums OK."
|
||||||
|
fi
|
Loading…
Add table
Add a link
Reference in a new issue