此脚本是针对 CVE-2024-10914 的概念验证 (PoC) 漏洞利用程序,该漏洞存在于某些 D-Link 设备中。该脚本用于识别并利用易受攻击的设备执行任意命令。
注意: 此脚本仅应用于教育目的或经授权的环境中。未经授权利用此漏洞可能属于非法且不道德的行为。
Finding Targets
To find potential targets, use Fofa (similar to Shodan.io):
Fofa Dork: app="D_Link-DNS-ShareCenter" && server=="lighttpd/1.4.25-devel-fb150ff"
requests(用于 HTTP 请求)alive-progress(用于进度条)prompt_toolkit(用于交互式 Shell)argparse(用于处理命令行参数)安装所需库,请执行:
pip3 install -r requirements.txt
usage: exploit.py [-h] [-u URL] [-f FILE] [-t THREADS] [-p PORT]
A PoC exploit for CVE-2024-10914 - D-Link Remote Code Execution (RCE)
optional arguments:
-h, --help Show this help message and exit
-u URL, --url URL Single target IP to test (e.g., 192.168.1.1)
-f FILE, --file FILE File containing list of target IPs to scan
-t THREADS, --threads THREADS
Number of threads to use for scanning (default: 5)
-p PORT, --port PORT Port to target (default: 80)
python3 exploit.py -u 192.168.1.100 -p 80
python3 exploit.py -f targets.txt -p 80 -t 10
此脚本尝试利用 D-Link 设备中的漏洞,具体针对以下内容:
此脚本仅供教育目的使用。请勿在未经明确许可的系统或网络上使用此脚本。
作者对此工具的任何滥用行为概不负责。
更多详情,请参考官方 GitHub 仓库: https://github.com/ThemeHackers/CVE-2024-10914
如果您发现任何问题或希望贡献代码,欢迎在 GitHub 仓库中开启 Issue 或提交 Pull Request。
本项目基于 MIT 许可证授权 - 详细信息请参阅 LICENSE 文件
MIT License
Copyright (c) 2024 ds_zct
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.