Created
August 24, 2015 12:07
-
-
Save thypon/126698a86cb8348b6b86 to your computer and use it in GitHub Desktop.
check security for all linked libraries
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
recursivechecksec() { | |
sudo LD_TRACE_LOADED_OBJECTS=1 LD_VERBOSE=1 /lib/ld-linux-x86-64.so.2 $1 | grep "=>" | sed 's|\s*||' | sed 's|(.*)||g' | awk '{print $3}' | sort | uniq | xargs -n1 ls -la | awk '{print $11}' | xargs -n1 echo /usr/lib/ | sed 's|\s*||g' | xargs -n1 checksec --file | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment