
CVE-2024-10914 هي ثغرة حقن أوامر حرجة تؤثر على عدة أجهزة تخزين متصلة بالشبكة (NAS) قديمة من D-Link.
هذا السكربت هو إثبات مفهوم (PoC) لاستغلال CVE-2024-10914، وهي ثغرة تنفيذ أوامر عن بُعد في بعض أجهزة 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 (للقشرة التفاعلية)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
إذا وجدت أي مشكلات أو كنت ترغب في المساهمة، فلا تتردد في فتح issue أو إرسال pull request في مستودع GitHub.
هذا المشروع مرخص بموجب رخصة 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.