aboutsummaryrefslogtreecommitdiff
path: root/identify
diff options
context:
space:
mode:
authorNiklas Baumstark <niklas.baumstark@gmail.com>2015-03-21 14:11:13 +0100
committerNiklas Baumstark <niklas.baumstark@gmail.com>2015-03-21 14:11:13 +0100
commit425524ef91e8b045a68a176be2e9bba0dd63deb4 (patch)
treef74870cbdc2a51e7b88b5e187dd7bbc8f1bbf551 /identify
parentdd3e6de7a7091cf32db9a378b0c251ba9dd37011 (diff)
downloadlibc-database-425524ef91e8b045a68a176be2e9bba0dd63deb4.tar.gz
libc-database-425524ef91e8b045a68a176be2e9bba0dd63deb4.zip
add identification script
Diffstat (limited to 'identify')
-rwxr-xr-xidentify8
1 files changed, 8 insertions, 0 deletions
diff --git a/identify b/identify
new file mode 100755
index 0000000..93f8586
--- /dev/null
+++ b/identify
@@ -0,0 +1,8 @@
+#!/bin/bash
+if [[ $# != 1 ]]; then
+ echo >&2 "Usage: $0 path/to/libc.so"
+ exit 2
+fi
+libc=$1
+sha1=`sha1sum $libc`
+sha1sum db/*.so | grep $sha1