文件特殊权限SUID测试

测试方法1(失败)思路:使用shell脚本,然后把脚本编译为二进制,赋予 suid权限,用不同的用户执行这样就能比较是否执行的时候用户是文件的所属用户 安装shc编译shell脚本123456789[root@centos-rpi3 shc]# yum install automake[root@centos-rpi3 tmp]# git clone https://github.com/neurobin/shc.git[root@centos-rpi3 shc]# cd shc[root@centos-rpi3 shc]# mkdir m4[root@centos-rpi3 shc]# ./autogen.sh[root@centos-rpi3 shc]# ./configure[root@centos-rpi3 shc]# make[root@centos-rpi3 shc]# make install

发布于 Linux

本站由 @aoenian 使用 Stellar 主题创建。
本博客所有文章除特别声明外,均采用 CC BY-NC-SA 4.0 许可协议,转载请注明出处。