diff options
Diffstat (limited to 'identify')
-rwxr-xr-x | identify | 10 |
1 files changed, 7 insertions, 3 deletions
@@ -3,6 +3,10 @@ if [[ $# != 1 ]]; then echo >&2 "Usage: $0 path/to/libc.so" exit 2 fi -libc=$1 -sha1=`sha1sum $libc | awk '{print $1}'` -sha1sum db/*.so | grep "$sha1 " | perl -n -e '/db\/(.*)\.so/&&print "id $1\n"' + +. common/libc.sh + +[[ -e $1 ]] || exit +sha256=`sha256sum $1` +check_sha256 $sha256 || exit +echo "No SHA-256 match found in the database" |