开发者

Find suid and gid files under root

开发者 https://www.devze.com 2022-12-19 04:17 出处:网络
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):

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

精彩评论

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