Linux rootkit的检测
1、chkrootkit
wget ftp://ftp.pangeia.com.br/pub/seg/pac/chkrootkit.tar.gz tar -zxvf chkrootkit.tar.gz cd chkrootkit-0.52/ make sense ./chkrootkit
chkrootkit参数说明
Usage: ./chkrootkit [options] [test ...] Options: -h 显示帮助信息 -V 显示版本信息 -l 显示测试内容 -d debug模式,显示检测过程的相关指令程序 -q 安静模式,只显示有问题部分, -x 高级模式,显示所有检测结果 -r dir 设定指定的目录为根目录 -p dir1:dir2:dirN 检测指定目录 -n 跳过NFS连接的目录
2、rootkit hunter
wget https://sourceforge.net/projects/rkhunter/files/latest/download?source=files tar -zxvf rkhunter-1.3.4.tar.gz cd rkhunter-1.3.4 ./installer.sh --layout default --install /usr/local/bin/rkhunter --propupd /usr/local/bin/rkhunter -c --sk -rwo
指令参数说明
Usage: /usr/local/bin/rkhunter [options] Options:   --append-log                               在日志文件后追加日志,而不覆盖原有日志   --bindir ...                               Use the specified command directories   -c, --check                                检测当前系统   --cs2, --color-set2                        Use the second color set for output   --configfile                               使用特定的配置文件   --cronjob                                  作为cron定期运行 (包含参数 -c, --sk , --nocolors )   --dbdir                                    Use the specified database directory   --debug                                    Debug模式(不要使用除非要求使用)   --disable [,...]                           跳过指定检查对象(默认为无)   --display-logfile                          在最后显示日志文件内容   --enable  [,...]                           对指定检测对象进行检查 (默认检测所有对象)   --hash {MD5 | SHA1 | NONE |                使用指定的文件哈希函数 (Default is SHA1)   -h, --help                                 显示帮助菜单   --lang, --language                         指定使用的语言 (Default is English)   --list [tests | languages | rootkits]      罗列测试对象明朝,使用语言,可检测的木马程序                   -l, --logfile [file]                       写到指定的日志文件名 (Default is /var/log/rkhunter.log)   --noappend-log                             不追加日志,直接覆盖日志文件   --nocolors                                 输出只显示黑白两色   --nolog                                    不写入日志文件   --nomow, --no-mail-on-warning              如果有警告信息,不发送邮件   --ns, --nosummary                          不显示检查结果的统计数据   --novl, --no-verbose-logging               不显示详细记录   --pkgmgr {RPM | DPKG | BSD | NONE}         使用特定的包管理用于文件的哈希值验证 (Default is NONE)   --propupd [file | directory | package]...  更新整个文件属性数据库或仅仅更新指定条目   -q, --quiet                                安静模式   --rwo, --report-warnings-only              只显示警告信息   -r, --rootdir                              使用指定的root目录   --sk, --skip-keypress                      自动完成所有检测,跳过键盘输入   --summary                                  显示检测结果的统计信息    --syslog [facility.priority]               记录检测启动和结束时间到系统日志中   --tmpdir                                   使用指定的临时目录   --update                                   检测更新内容   --vl, --verbose-logging                    使用详细日志记录   -V, --version                              显示版本信息   --versioncheck                             检测最新版本   -x, --autox                                当X在使用时,自动启动检测   -X, --no-autox                             当X在使用时,不自启检测 原文链接:https://www.qiquanji.com/post/5250.html
本站声明:网站内容来源于网络,如有侵权,请联系我们,我们将及时处理。
微信扫码关注
更新实时通知