开发者

Find suid and gid files under root

I’m look开发者_开发百科ing for find command arguments to find all files under the / that have setuid and setgid privileges. I have find / ??? so far.


setuid or setgid (GNU findutils):

find / -perm /6000

setuid or setgid (POSIX):

find / -perm -4000 -o -perm -2000

setuid and setgid:

find / -perm -6000


find / \( -perm -u+s -o -perm -g+s \) -type f


find / -perm -u=s  -g=s -type f 2>/dev/null

the following command you can enumerate all binaries having SUID permission.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜