변군이글루

[리눅스] Rkhunter (Rootkit Hunter) 설치 본문

* 리눅스

[리눅스] Rkhunter (Rootkit Hunter) 설치

변군 변군이글루 2013. 8. 5. 17:38
728x90

Rkhunter (Rootkit Hunter) 설치

: rkhunter로 해킹 여부 체크하기

 

http://www.rootkit.nl/projects/rootkit_hunter.html

 

1. 다운로드

[root@lamp01 src]$ wget http://ncu.dl.sourceforge.net/project/rkhunter/rkhunter/1.4.0/rkhunter-1.4.0.tar.gz

 2. rootkit 설치

[root@lamp01 src]$ tar xvfz rkhunter-1.4.0.tar.gz

[root@lamp01 src]$ cd rkhunter-1.4.0

[root@lamp01 rkhunter-1.4.0]$ ./installer.sh --layout default --install

3. rootkit 업데이트

[root@lamp01 rkhunter-1.4.0]$ /usr/local/bin/rkhunter --update

[root@lamp01 rkhunter-1.4.0]$ /usr/local/bin/rkhunter --propupd

 4. Cronjob 등록 및 점검 파일 메일 발송

[root@lamp01 src]$ crontab -e
###################################################################################################################
## Rkhunter(월 초에 점검 진행)
###################################################################################################################
#0 1 1 * *    /usr/local/bin/rkhunter -c --report-warnings-only --cronjob 2>&1 | mail -s "lamp.sangchul.kr RKHUNTER" scbyun@sangchul.kr
0 1 1 * *     /usr/local/bin/rkhunter -c --cronjob 2>&1 | mail -s "lamp.sangchul.kr RKHUNTER" scbyun@sangchul.kr

 

728x90
0 Comments
댓글쓰기 폼