Created
January 28, 2015 11:30
-
-
Save hyakuhei/a5898fa0299f1eb5f902 to your computer and use it in GitHub Desktop.
Simple script to find all statically compiled binaries that appear to use glibc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
find / -type f -executable -exec file {} \; | grep statically | cut -d ':' -f 1 > search.txt | |
for fn in `cat search.txt`; do | |
if grep --quiet 'glibc' $fn; then | |
echo $fn is statically linked and uses GLibc | |
fi | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment