Richard Marian Thomaiyar | 14fddef | 2018-07-13 23:55:56 +0530 | [diff] [blame^] | 1 | #!/bin/sh |
| 2 | # |
| 3 | # |
| 4 | # This software may be freely redistributed under the terms of the GNU |
| 5 | # public license. |
| 6 | # |
| 7 | # You should have received a copy of the GNU General Public License |
| 8 | # along with this program; if not, write to the Free Software |
| 9 | # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. |
| 10 | # |
| 11 | # This program looks for hidden executables |
| 12 | |
| 13 | find / -name '.*' -type f -perm /00111 2>/dev/null |
| 14 | |
| 15 | # Also need to find hidden dirs and see if anything below it is hidden |
| 16 | hidden_dirs=`find / -name '.*' -type d 2>/dev/null` |
| 17 | for d in $hidden_dirs |
| 18 | do |
| 19 | find $d -name '.*' -type f -perm /00111 2>/dev/null |
| 20 | done |
| 21 | |