亚洲香蕉成人av网站在线观看_欧美精品成人91久久久久久久_久久久久久久久久久亚洲_热久久视久久精品18亚洲精品_国产精自产拍久久久久久_亚洲色图国产精品_91精品国产网站_中文字幕欧美日韩精品_国产精品久久久久久亚洲调教_国产精品久久一区_性夜试看影院91社区_97在线观看视频国产_68精品久久久久久欧美_欧美精品在线观看_国产精品一区二区久久精品_欧美老女人bb

首頁 > 學院 > 軟件教程 > 正文

rootkit的檢測工具使用介紹(chkrootkit和rootkit hunter)

2020-07-18 16:07:27
字體:
來源:轉載
供稿:網友

用了兩個工具,一個chkrootkit,另外一個rootkit huntur。在使用了這兩個產品后,覺得rootkit的信息更加詳細一些。現在就對兩個工具的操作和使用寫一個記錄,也方便之后自己查看。

1. chkrootkit的使用
project: http://www.chkrootkit.org
download: ftp://ftp.pangeia.com.br/pub/seg/pac/chkrootkit.tar.gz

1.1 解壓安裝
#tar -zxvf chkrootkit.tar.gz
#make sense

1.2 運行監測
#./chkrootkit
運行結果在
http://blogimg.chinaunix.net/blog/upfile2/090326111017.pdf
判斷有問題的信息如下:
Checking `ifconfig'... INFECTED
Checking `ls'... INFECTED
Checking `netstat'... INFECTED
Checking `ps'... INFECTED
Checking `top'... INFECTED
Searching for Madalin rootkit default files... Possible Madalin rootkit installed
Checking `bindshell'... INFECTED (PORTS: 145)
Checking `lkm'... You have 77 process hidden for readdir command
You have 77 process hidden for ps command
chkproc: Warning: Possible LKM Trojan installed
Checking `sniffer'... eth0: PROMISC

不幸中招,系統只能夠重新安裝了。在看了這個文檔之后,對chkrootkit這個工具又看了一些其他資料??梢宰鰎ootkit的自動檢查操作
具體可以看 http://www.centospub.com/make/chkrootkit.html

1.3 chkrootkit參數說明
Usage: ./chkrootkit [options] [test ...]
Options:
-h 顯示幫助信息
-V 顯示版本信息
-l 顯示測試內容
-d debug模式,顯示檢測過程的相關指令程序
-q 安靜模式,只顯示有問題部分,
-x 高級模式,顯示所有檢測結果
-r dir 設定指定的目錄為根目錄
-p dir1:dir2:dirN 檢測指定目錄
-n 跳過NFS連接的目錄

2. rootkit hunter的使用
Project: http://www.rootkit.nl/projects/rootkit_hunter.html
download: http://downloads.sourceforge.net/rkhunter/rkhunter-1.3.4.tar.gz?use_mirror=jaist

2.1 解壓安裝
解壓
#tar -zxvf rkhunter-1.3.4.tar.gz
安裝
#cd rkhunter-1.3.4
#./installer.sh -h
Usage: ./installer.sh <parameters>
Ordered valid parameters:
--help (-h) : 顯示幫助
--examples : 顯示安裝實例
--layout <value> : 選擇安裝模板(安裝必選參數).
模板選擇:
- default: (FHS compliant),
- /usr,
- /usr/local,
- oldschool: 之前版本安裝路徑,
- custom: 自定義安裝路徑,
- RPM: for building RPM's. Requires $RPM_BUILD_ROOT.
- DEB: for building DEB's. Requires $DEB_BUILD_ROOT.
--striproot : Strip path from custom layout (for package maintainers).
--install : 根據選擇目錄安裝
--show : 顯示安裝路徑
--remove : 卸載rkhunter
--version : 顯示安裝版本


我使用的安裝指令
#./installer.sh --layout default --install

2.2 rkhunter操作
#/usr/local/bin/rkhunter --propupd
#/usr/local/bin/rkhunter -c --sk --rwo

Warning: File '/bin/awk' has the immutable-bit set.
Warning: File '/bin/basename' has the immutable-bit set.
Warning: File '/bin/bash' has the immutable-bit set.
Warning: File '/bin/cat' has the immutable-bit set.
Warning: File '/bin/chmod' has the immutable-bit set.
Warning: File '/bin/chown' has the immutable-bit set.
Warning: File '/bin/cp' has the immutable-bit set.
Warning: File '/bin/csh' has the immutable-bit set.
Warning: File '/bin/cut' has the immutable-bit set.
Warning: File '/bin/date' has the immutable-bit set.
Warning: File '/bin/df' has the immutable-bit set.
Warning: File '/bin/dmesg' has the immutable-bit set.
Warning: File '/bin/echo' has the immutable-bit set.
Warning: File '/bin/ed' has the immutable-bit set.
Warning: File '/bin/egrep' has the immutable-bit set.
Warning: File '/bin/env' has the immutable-bit set.
Warning: File '/bin/fgrep' has the immutable-bit set.
Warning: File '/bin/grep' has the immutable-bit set.
Warning: File '/bin/kill' has the immutable-bit set.
Warning: File '/bin/login' has the immutable-bit set.
Warning: File '/bin/ls' has the immutable-bit set.
Warning: File '/bin/mail' has the immutable-bit set.
Warning: File '/bin/mktemp' has the immutable-bit set.
Warning: File '/bin/more' has the immutable-bit set.
Warning: File '/bin/mount' has the immutable-bit set.
Warning: File '/bin/mv' has the immutable-bit set.
Warning: File '/bin/netstat' has the immutable-bit set.
Warning: File '/bin/ps' has the immutable-bit set.
Warning: File '/bin/pwd' has the immutable-bit set.
Warning: File '/bin/rpm' has the immutable-bit set.
Warning: File '/bin/sed' has the immutable-bit set.
Warning: File '/bin/sh' has the immutable-bit set.
Warning: File '/bin/sort' has the immutable-bit set.
Warning: File '/bin/su' has the immutable-bit set.
Warning: File '/bin/touch' has the immutable-bit set.
Warning: File '/bin/uname' has the immutable-bit set.
Warning: File '/bin/gawk' has the immutable-bit set.
Warning: File '/bin/tcsh' has the immutable-bit set.
Warning: File '/usr/bin/awk' has the immutable-bit set.
Warning: File '/usr/bin/cut' has the immutable-bit set.
Warning: File '/usr/bin/env' has the immutable-bit set.
Warning: The command '/usr/bin/GET' has been replaced by a script: /usr/bin/GET: perl script text executable
Warning: The command '/usr/bin/groups' has been replaced by a script: /usr/bin/groups: Bourne shell script text executable
Warning: File '/usr/bin/kill' has the immutable-bit set.
Warning: The command '/usr/bin/ldd' has been replaced by a script: /usr/bin/ldd: Bourne shell script text executable
Warning: File '/usr/bin/top' has the immutable-bit set.
Warning: The command '/usr/bin/whatis' has been replaced by a script: /usr/bin/whatis: Bourne shell script text executable
Warning: File '/usr/bin/gawk' has the immutable-bit set.
Warning: File '/sbin/chkconfig' has the immutable-bit set.
Warning: File '/sbin/depmod' has the immutable-bit set.
Warning: File '/sbin/fuser' has the immutable-bit set.
Warning: File '/sbin/ifconfig' has the immutable-bit set.
Warning: File '/sbin/ifdown' has the immutable-bit set.
Warning: The command '/sbin/ifdown' has been replaced by a script: /sbin/ifdown: Bourne-Again shell script text executable
Warning: File '/sbin/ifup' has the immutable-bit set.
Warning: The command '/sbin/ifup' has been replaced by a script: /sbin/ifup: Bourne-Again shell script text executable
Warning: File '/sbin/init' has the immutable-bit set.
Warning: File '/sbin/insmod' has the immutable-bit set.
Warning: File '/sbin/ip' has the immutable-bit set.
Warning: File '/sbin/lsmod' has the immutable-bit set.
Warning: File '/sbin/modinfo' has the immutable-bit set.
Warning: File '/sbin/modprobe' has the immutable-bit set.
Warning: File '/sbin/nologin' has the immutable-bit set.
Warning: File '/sbin/rmmod' has the immutable-bit set.
Warning: File '/sbin/runlevel' has the immutable-bit set.
Warning: File '/sbin/sulogin' has the immutable-bit set.
Warning: File '/sbin/sysctl' has the immutable-bit set.
Warning: File '/sbin/syslogd' has the immutable-bit set.
Warning: File '/usr/sbin/adduser' has the immutable-bit set.
Warning: No hash value found for file '/usr/sbin/amd' in the rkhunter.dat file.
Warning: File '/usr/sbin/amd' has the immutable-bit set.
Warning: File '/usr/sbin/chroot' has the immutable-bit set.
Warning: File '/usr/sbin/groupadd' has the immutable-bit set.
Warning: File '/usr/sbin/groupdel' has the immutable-bit set.
Warning: File '/usr/sbin/groupmod' has the immutable-bit set.
Warning: File '/usr/sbin/grpck' has the immutable-bit set.
Warning: File '/usr/sbin/kudzu' has the immutable-bit set.
Warning: File '/usr/sbin/lsof' has the immutable-bit set.
Warning: File '/usr/sbin/prelink' has the immutable-bit set.
Warning: File '/usr/sbin/pwck' has the immutable-bit set.
Warning: File '/usr/sbin/sestatus' has the immutable-bit set.
Warning: File '/usr/sbin/tcpd' has the immutable-bit set.
Warning: File '/usr/sbin/useradd' has the immutable-bit set.
Warning: File '/usr/sbin/userdel' has the immutable-bit set.
Warning: File '/usr/sbin/usermod' has the immutable-bit set.
Warning: File '/usr/sbin/vipw' has the immutable-bit set.
Warning: File '/usr/sbin/xinetd' has the immutable-bit set.
Warning: Dreams Rootkit [ Warning ]
File '/usr/bin/sense' found
File '/usr/bin/sl2' found
File '/usr/bin/(swapd)' found
Warning: Checking for possible rootkit strings [ Warning ]
Found string '/dev/ttyoa' in file '/bin/netstat'. Possible rootkit: Sin Rootkit
Warning: Found possible sniffer log file: /usr/lib/libice.log
Warning: Found enabled xinetd service: /etc/xinetd.d/auth
Warning: Found enabled xinetd service: /etc/xinetd.d/cups-lpd
Warning: Found enabled xinetd service: /etc/xinetd.d/swat
Warning: Found enabled xinetd service: /etc/xinetd.d/vmware-authd
Warning: Possible promiscuous interfaces:
'ifconfig' command output:
'ip' command output: eth0
Warning: Account 'test' is root equivalent (UID = 0)
Warning: Account 'james' is root equivalent (UID = 0)
Warning: Account 'master' is root equivalent (UID = 0)
Warning: Account 'admin' is root equivalent (UID = 0)
Warning: The SSH configuration option 'PermitRootLogin' has not been set.
The default value may be 'yes', to allow root access.
Warning: The SSH configuration option 'Protocol' has not been set.
The default value may be '2,1', to allow the use of protocol version 1.
Warning: Hidden file found: /usr/share/man/man1/..1.gz: gzip compressed data, from Unix, max compression
Warning: Application 'exim', version '4.43', is out of date, and possibly a security risk.
Warning: Application 'gpg', version '1.2.6', is out of date, and possibly a security risk.
Warning: Application 'openssl', version '0.9.7a', is out of date, and possibly a security risk.
Warning: Application 'php', version '4.3.9', is out of date, and possibly a security risk.
One or more warnings have been found while checking the system.
Please check the log file (/var/log/rkhunter.log)

結果就是“中招”,基本上就是重新安裝系統的命了。不過從檢查的結果來看,可以判斷所中的rootkit的類型和被替換的系統文件。同時對一些程序版本進行檢測,提供的信息比較多。

2.3 指令參數說明
#/usr/local/bin/rkhunter
Usage: rkhunter {--check | --update | --versioncheck |
--propupd [{filename | directory | package name},...] |
--list [{tests | {lang | languages} | rootkits},...] |
--version | --help} [options]

Current options are:
--append-log 在日志文件后追加日志,而不覆蓋原有日志
--bindir <directory>... Use the specified command directories
-c, --check 檢測當前系統
--cs2, --color-set2 Use the second color set for output
--configfile <file> 使用特定的配置文件
--cronjob 作為cron定期運行
(包含參數 -c, --sk , --nocolors )
--dbdir <directory> Use the specified database directory
--debug Debug模式(不要使用除非要求使用)
--disable <test>[,<test>...] 跳過指定檢查對象(默認為無)
--display-logfile 在最后顯示日志文件內容
--enable <test>[,<test>...] 對指定檢測對象進行檢查
(默認檢測所有對象)
--hash {MD5 | SHA1 | NONE | 使用指定的文件哈希函數
<command>} (Default is SHA1)
-h, --help 顯示幫助菜單
--lang, --language <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 安靜模式(no output at all)
--rwo, --report-warnings-only 只顯示警告信息
-r, --rootdir <directory> 使用指定的root目錄
--sk, --skip-keypress 自動完成所有檢測,跳過鍵盤輸入
--summary 顯示檢測結果的統計信息
(This is the default)
--syslog [facility.priority] 記錄檢測啟動和結束時間到系統日志中
(Default level is authpriv.notice)
--tmpdir <directory> 使用指定的臨時目錄
--update 檢測更新內容
--vl, --verbose-logging 使用詳細日志記錄 (on by default)
-V, --version 顯示版本信息
--versioncheck 檢測最新版本
-x, --autox 當X在使用時,自動啟動檢測
-X, --no-autox 當X在使用時,不自啟檢測

發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
亚洲香蕉成人av网站在线观看_欧美精品成人91久久久久久久_久久久久久久久久久亚洲_热久久视久久精品18亚洲精品_国产精自产拍久久久久久_亚洲色图国产精品_91精品国产网站_中文字幕欧美日韩精品_国产精品久久久久久亚洲调教_国产精品久久一区_性夜试看影院91社区_97在线观看视频国产_68精品久久久久久欧美_欧美精品在线观看_国产精品一区二区久久精品_欧美老女人bb
亚洲人免费视频| 亚洲精品91美女久久久久久久| 国产精品青草久久久久福利99| 全球成人中文在线| 疯狂做受xxxx欧美肥白少妇| 国产精品免费看久久久香蕉| 91美女福利视频高清| 亚洲欧美制服综合另类| 亚洲男人天堂2019| 欧美日产国产成人免费图片| 欧美激情日韩图片| 亚洲午夜精品久久久久久久久久久久| 午夜美女久久久久爽久久| 色久欧美在线视频观看| 日韩美女在线看| 午夜精品久久久久久久久久久久久| 国产视频自拍一区| 九九九热精品免费视频观看网站| 中文字幕在线成人| 国产午夜精品理论片a级探花| 国产欧美一区二区三区久久| 中文字幕在线观看亚洲| 国产精品久久久| 亚洲成人久久网| 欧美视频国产精品| 亚洲国产婷婷香蕉久久久久久| 欧美激情精品在线| 国产精品啪视频| 国产成人精品电影| 欧美精品免费看| 欧美精品亚州精品| 欧美国产精品va在线观看| 久热99视频在线观看| 国产91精品网站| 97久久精品视频| 91成人性视频| 久久人91精品久久久久久不卡| 91禁外国网站| 成人国产在线视频| xvideos国产精品| 午夜精品一区二区三区在线| 亚洲码在线观看| 性色av一区二区三区红粉影视| 国产精品男人爽免费视频1| 亚洲欧美日韩精品久久亚洲区| 中文字幕日韩电影| 国产精品久久久亚洲| 青草青草久热精品视频在线网站| 亚洲精品成人免费| 亚洲网站视频福利| 欧美亚洲第一页| 日韩欧美国产骚| 欧美巨大黑人极品精男| 国产一区玩具在线观看| 在线精品国产成人综合| 欧美亚洲国产日本| 亚洲综合第一页| 在线观看日韩www视频免费| 成人精品一区二区三区| 中文字幕亚洲情99在线| 亚洲电影免费在线观看| 国产视频999| 国产精品福利无圣光在线一区| 精品久久久久久久久中文字幕| 国产视频精品一区二区三区| 97av在线影院| 91精品一区二区| 亚洲欧美日韩国产中文| 在线播放国产精品| 精品中文字幕在线| 久久久久久国产免费| 97色伦亚洲国产| 成人午夜在线观看| 日韩色av导航| 色综合伊人色综合网| 26uuu另类亚洲欧美日本一| 国产精品美女午夜av| 亚洲欧美资源在线| 国产v综合v亚洲欧美久久| 深夜福利91大全| 91禁外国网站| 北条麻妃99精品青青久久| 18久久久久久| 亚洲国产精品va在线看黑人| 欧美性猛交xxxx乱大交极品| 九色精品美女在线| 欧美激情一级二级| 欧美视频裸体精品| 欧美男插女视频| 日韩在线视频线视频免费网站| 欧美激情精品久久久久久蜜臀| 日韩电影大全免费观看2023年上| 亚洲深夜福利在线| 久久69精品久久久久久国产越南| 91麻豆国产语对白在线观看| 国产大片精品免费永久看nba| 亚洲成色777777在线观看影院| 久青草国产97香蕉在线视频| 日韩一区二区三区xxxx| 国产精品视频午夜| 亚洲精品一区二区网址| 68精品久久久久久欧美| 欧美一区深夜视频| 国产精品99免视看9| 成人a在线视频| 成人免费福利在线| 欧亚精品在线观看| 欧美国产高跟鞋裸体秀xxxhd| 成人免费福利视频| 亚洲精品视频免费| 在线观看日韩av| 欧美成人黑人xx视频免费观看| 亚洲福利视频免费观看| 日韩av网站大全| 欧美伊久线香蕉线新在线| 91av中文字幕| 亚洲一二三在线| 欧洲成人在线视频| 亚洲欧美综合精品久久成人| 国产91在线播放| 亚洲国产精品小视频| 久久激情五月丁香伊人| 国产亚洲欧洲高清一区| 日韩二区三区在线| 国产亚洲欧美日韩精品| 亚洲天堂开心观看| 亚洲日本成人女熟在线观看| 亚洲成人aaa| 两个人的视频www国产精品| 国产亚洲精品久久久久久| 九九热精品视频国产| 亚洲欧美日韩一区二区在线| 91爱爱小视频k| 国产精品直播网红| 欧美久久久精品| 青青草一区二区| 日韩欧亚中文在线| 日韩欧美一区二区三区| 日韩电影大全免费观看2023年上| 在线精品91av| 国产在线观看精品一区二区三区| 中文字幕欧美日韩| 亚洲福利在线播放| 海角国产乱辈乱精品视频| 久久99精品久久久久久青青91| 国产999精品| 欧美成人精品三级在线观看| 亚洲欧美中文另类| 久久久久99精品久久久久| 色偷偷91综合久久噜噜| 国产精品无码专区在线观看| 这里只有精品丝袜| 亚洲sss综合天堂久久| 92国产精品久久久久首页| 中文欧美日本在线资源| 国产精品亚洲激情| 欧洲亚洲女同hd| 亚洲视频在线观看| 精品偷拍一区二区三区在线看| 精品中文字幕在线观看| 久久九九热免费视频| 久久久国产成人精品| 日韩在线观看你懂的| 国模精品视频一区二区|