cd /root/src; tar zxvf chkrootkit.tar.gz
cd chkrootkit-0.53
make sense
 
./chkrootkit
 
 
 
* 아래와 같은 오류가 나온다면
 
cc -DHAVE_LASTLOG_H -o chklastlog chklastlog.c
cc -DHAVE_LASTLOG_H -o chkwtmp chkwtmp.c
cc -DHAVE_LASTLOG_H   -D_FILE_OFFSET_BITS=64 -o ifpromisc ifpromisc.c
cc  -o chkproc chkproc.c
cc  -o chkdirs chkdirs.c
cc  -o check_wtmpx check_wtmpx.c
cc -static  -o strings-static strings.c
/usr/bin/ld: cannot find -lc
collect2: ld returned 1 exit status
make: *** [strings-static] Error 1
 
# yum install glibc-static
 
glibc-static 를 설치해준다.
 
다시
 
# make sense 하면 된다.
 
cc -DHAVE_LASTLOG_H -o chklastlog chklastlog.c
cc -DHAVE_LASTLOG_H -o chkwtmp chkwtmp.c
cc -DHAVE_LASTLOG_H   -D_FILE_OFFSET_BITS=64 -o ifpromisc ifpromisc.c
cc  -o chkproc chkproc.c
cc  -o chkdirs chkdirs.c
cc  -o check_wtmpx check_wtmpx.c
cc -static  -o strings-stati
 

 

'Security > OS 관련' 카테고리의 다른 글

mod_security 탐지 걸린 룰 해제시 방법  (0) 2023.11.07
apache 2.4 mod 시큐리티  (0) 2023.11.07
mod_security 적용 방법  (0) 2023.11.07
OS 변조파일 검사 (rkhunter)  (0) 2023.11.07
휘슬 설치 프로세스  (0) 2023.11.07

+ Recent posts