Linux下RootKits检查常用工具及其使用
2016-06-04 22:19
375 查看
1.1. Rkhunter安装使用
wget http://downloads.sourceforge.net/project/rkhunter/rkhunter/1.4.2/rkhunter-1.4.2.tar.gz tar xzfv rkhunter-1.4.2.tar.gz
cd rkhunter-1.4.2
./installer.sh --install --layout default
--update :升级
rkhunter
--checkall (-c) :全系统检测,rkhunter 的所有检测项目
--createlogfile :建立登录档,一般预设放在/var/log/rkhunter.log
--skip-keypress :忽略按键后继续的举动(程序会持续自动执行)
--versioncheck :检测试否有新的版本在服务器上
rkhunter -c //使用方法
1.2. Chkrootkit安装使用
yum -y install gcc
yum -y install gcc-c++ //安装编译环境
yum -y install make
wget ftp://ftp.pangeia.com.br/pub/seg/pac/chkrootkit.tar.gz
tar zxvf chkrootkit.tar.gz
cd chkrootkit-0.50
make sense //编译完成没有报错的话执行检查
./chkrootkit
或者
./chkrootkit | grep INFECTED //搜索被感染的文件
存在问题:在执行make sense时产生如下错误:
/usr/bin/ld: cannot find -lc
collect2: 错误:ld 返回 1
make: *** [strings-static] 错误 1
解决方法:
yum install glibc-static
make clean
make sense
wget http://downloads.sourceforge.net/project/rkhunter/rkhunter/1.4.2/rkhunter-1.4.2.tar.gz tar xzfv rkhunter-1.4.2.tar.gz
cd rkhunter-1.4.2
./installer.sh --install --layout default
--update :升级
rkhunter
--checkall (-c) :全系统检测,rkhunter 的所有检测项目
--createlogfile :建立登录档,一般预设放在/var/log/rkhunter.log
--skip-keypress :忽略按键后继续的举动(程序会持续自动执行)
--versioncheck :检测试否有新的版本在服务器上
rkhunter -c //使用方法
1.2. Chkrootkit安装使用
yum -y install gcc
yum -y install gcc-c++ //安装编译环境
yum -y install make
wget ftp://ftp.pangeia.com.br/pub/seg/pac/chkrootkit.tar.gz
tar zxvf chkrootkit.tar.gz
cd chkrootkit-0.50
make sense //编译完成没有报错的话执行检查
./chkrootkit
或者
./chkrootkit | grep INFECTED //搜索被感染的文件
存在问题:在执行make sense时产生如下错误:
/usr/bin/ld: cannot find -lc
collect2: 错误:ld 返回 1
make: *** [strings-static] 错误 1
解决方法:
yum install glibc-static
make clean
make sense
相关文章推荐
- CentOS 7中安装mysql server的步骤分享
- centos 7安装mysql5.5的方法
- centos 7安装mysql5.5和安装 mariadb使用的命令
- Centos7 Mysql 5.6 多主一从 解决方案与详细配置
- 阿里云Centos7安装LNMP+wordpress
- CentOS 7安装python3笔记
- Centos7 常用命令
- Centos7 修改主机名
- Centos7 关闭防火墙
- centOS 7 安装nodeJs & mysql 常见问题
- CentOS7上编译多版本PHP并同时运行及systemd设置
- CentOS安装VirtualBox增强功能
- CentOS 7.1 (6.6)PXE网络自动化安装
- centos7将网卡名字改成eth样式
- centos7下载
- rootkit后门检测工具rootkit和RKHunter
- CentOS7 - systemd服务
- Centos7 修改运行级别