一个用于利用CVE-2020-8816(Pi-hole上的远程代码执行漏洞)的Python脚本。
该脚本使用了François Renaud-Philippon发现的技术,对运行着低于4.3.3版本Web界面的Pi-hole实现远程代码执行。漏洞利用要求www-data用户的路径为/opt/pihole:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin。
> python3 .\CVE-2020-8816.py -h
usage: CVE-2020-8816.py [-h] url password ip port
Receive a reverse shell on a Pi-hole with access to the admin web console
positional arguments:
url The URL of the Pi-hole console
password The admin password for the Pi-hole console
ip The IP address for the reverse shell to connect to
port The port for the reverse shell to connect to
optional arguments:
-h, --help show this help message and exit
