[PLUG] improved `find-zlib` ?
Jeme A Brelin
jeme at brelin.net
Fri Mar 22 00:25:58 UTC 2002
On Thu, 21 Mar 2002, Kyle Accardi wrote:
> This perl script
> http://cert.uni-stuttgart.de/files/fw/find-zlib
>
> looks handy for identifing binaries that link to zlib. Problem is, it
> doesn't decend dirs. Has anyone hacked this script to be even better?
TOP_DIR="/"
for file in `find $TOP_DIR`; do
file $file |grep ELF >/dev/null\
&& ldd $file|grep libz >/dev/null\
&& echo $file;
done
What's wrong with that?
Oh, wait... you want static links as well?
J.
--
-----------------
Jeme A Brelin
jeme at brelin.net
-----------------
[cc] counter-copyright
http://www.openlaw.org
More information about the PLUG
mailing list