mirror of
https://github.com/autistic-symposium/sec-pentesting-toolkit.git
synced 2025-04-28 03:26:08 -04:00
update checksum script
This commit is contained in:
parent
7ae6b4572f
commit
e014e27fc1
@ -3,10 +3,10 @@
|
|||||||
# usage:
|
# usage:
|
||||||
# ./check_checksum.sh <file> <hash>
|
# ./check_checksum.sh <file> <hash>
|
||||||
|
|
||||||
filehash=`md5 -q $1`
|
filehash=`sha1sum $1`
|
||||||
|
|
||||||
echo "Checking file: $1, calculated as $filehash"
|
echo "Checking file: $1, calculated as $filehash"
|
||||||
echo "Using MD5 file: $2"
|
echo "Using SHA1 file: $2"
|
||||||
|
|
||||||
if [ $filehash != $2 ]
|
if [ $filehash != $2 ]
|
||||||
then
|
then
|
||||||
|
Loading…
x
Reference in New Issue
Block a user