此脚本是 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.