find /home –name *.rhosts -print 2>/dev/null | 查找rhost配置文件 | |||
find /etc -iname hosts.equiv -exec ls -la {} 2>/dev/null ; -exec cat {} 2>/dev/null ; | 查找hosts.equiv,列出权限并管理文件内容 | |||
cat ~/.bash_history | 显示当前用户历史记录 | |||
ls -la ~/.*_history | 向当前用户分发各种历史文件 | |||
ls -la ~/.ssh/ | 检查当前用户的ssh文件 | |||
find /etc -maxdepth 1 -name ‘.conf’ -type f要么ls -la /etc/.conf | 在/ etc中列出配置文件(深度1,在第一个命令中修改maxdepth参数以对其进行更改) | |||
lsof | grep ‘/home/\ | /etc/\ | /opt/‘ | 显示可能有趣的打开文件 |
1 | 1 0 * * * printf “” > /var/log/apache/error_log |
-d或—directories 仅显示被客户挂载的目录名。showmount 显示指定NFS服务器连接NFS客户端的信息
-e或—exports 显示NFS服务器的输出清单。
-h或—help 显示帮助信息。
-v或—version 显示版本信。
—no-headers 禁止输出描述头部信息。显示NFS客户端信息 #
现在,如果root用户以root特权执行代码,我们可以使用root特权实现任意代码执行。
欢迎光临 嵌入式开发交流网论坛 (http://www.dianzixuexi.com/bbs/) | Powered by Discuz! X3.2 |