
CVE-2024-10914 は、複数のレガシーD-Linkネットワークアタッチドストレージ(NAS)デバイスに影響を与える重大なコマンドインジェクションの脆弱性です。
このスクリプトは、特定のD-Linkデバイスにおけるリモートコード実行の脆弱性CVE-2024-10914の概念実証(PoC)エクスプロイトです。このスクリプトは脆弱なデバイスを特定し、任意のコマンドを実行するために悪用します。
注: このスクリプトは、教育目的または許可された環境でのみ使用してください。この脆弱性の不正な悪用は違法かつ非倫理的となる可能性があります。
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 (対話型シェル用)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を開くかプルリクエストを送信してください。
このプロジェクトは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.