Rootkit analysis (Install trojan horse program)
cd /tmp tar zxvf /usr/local2/wsh/rootkit/rkt.tar.gz cd rkt ./installExam the install script and try to figure out what trojan horse program have been installed and what backdoor has been created
telnet your_host 8080Stay there until you finish step 4 below.
| ls -Fa /usr/src | ls.orig -Fa /usr/src |
| find /usr/src -name .hide -print | find.orig /usr/src -name .hide -print |
| du -sk /usr/src/.h* | du.orig -sk /usr/src/.h* |
| ps -aux | ps.orig -aux |
| pstree | pstree.orig |
| top | top.org |
| ifconfig eth0 | ifconfig.orig eth0 |
| netstat | netstat.orig |
What information do the trojan horse programs try to hide? Exam the /usr/src/.hide/.1* files. What are these files for? Try to edit these files and test if you can change the the information hiding of these trojan horse programs.
ls.orig -l /bin/ps /bin/ps.orig sum /bin/ps /bin/ps.orig /usr/local2/bin/md5 /bin/ps /bin/ps.origWhat information you should trust from the above comparison?
cd /usr/src/.hide ./wipe u your_login_name
/usr/src/.hide/t0rnsb ftpd
Download and install a chkrootkit from http://www.chkrootkit.org/. See if you can detect any trojan horse program that you have installed.