blob: f799fca8f6ab698c5115897db353efbf112d84e1 [file] [log] [blame]
Richard Marian Thomaiyar14fddef2018-07-13 23:55:56 +05301#!/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
13find / -name '.*' -type f -perm /00111 2>/dev/null
14
15# Also need to find hidden dirs and see if anything below it is hidden
16hidden_dirs=`find / -name '.*' -type d 2>/dev/null`
17for d in $hidden_dirs
18do
19 find $d -name '.*' -type f -perm /00111 2>/dev/null
20done
21