Is there a open-source Linux tool / utility for Linux platform that would recursively search for binary files (executable, shared / static objects, etc), in a folder and display?
When looking for files containing executable code in a well known format, you could search using
find . -type f -print0 | xargs -0 file | grep -i "i386\|x86\|arm\|ar archive"
This will get you all files which
file labeled with the processor name for i386, x86 or arm.
Note that there are many filetypes which
file does not recognize.
It will for instance not recognize java jar files, or android apk files as executable.
Nor will it recognize raw firmware images.
What I actually usually do when researching an unknown system:
find . | xargs fileto get a large list of everything
- then filter out known files, like audio, images, html, text, xml files.
- then manually inspect what is left over.
filealso makes lots of mistakes, i usually get quite some number of files labeled as DOS executable, which aren't, also i often see files mislabeled as DBase.