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?
closed as off-topic by perror, Rolf Rolles, Jason Geffner, 0xC0000022L♦, ixje Mar 25 '14 at 21:07
- This question does not appear to be about reverse engineering within the scope defined in the help center.
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.