
CVE-2024-10914 è una vulnerabilità critica di command injection che colpisce diversi dispositivi legacy D-Link Network Attached Storage (NAS).
Questo script è un exploit proof-of-concept (PoC) per CVE-2024-10914, una vulnerabilità di esecuzione remota di codice in alcuni dispositivi D-Link. Lo script identifica e sfrutta i dispositivi vulnerabili per eseguire comandi arbitrari.
Nota: Questo script dovrebbe essere utilizzato solo per scopi educativi o in ambienti autorizzati. Lo sfruttamento non autorizzato di questa vulnerabilità potrebbe essere illegale e non etico.
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 (per le richieste HTTP)alive-progress (per le barre di avanzamento)prompt_toolkit (per la shell interattiva)argparse (per la gestione degli argomenti della riga di comando)Per installare le librerie richieste, usa:
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
Questo script tenta di sfruttare una vulnerabilità nei dispositivi D-Link, prendendo di mira specificamente quanto segue
Questo script è solo per scopi educativi. Non utilizzare questo script su sistemi o reti per cui non hai esplicita autorizzazione a testare.
Gli autori non sono responsabili per qualsiasi uso improprio di questo strumento.
Per maggiori dettagli, fai riferimento al repository GitHub ufficiale: https://github.com/ThemeHackers/CVE-2024-10914
Se trovi problemi o vuoi contribuire, apri pure una issue o invia una pull request sul repository GitHub.
Questo progetto è rilasciato sotto la licenza MIT - consulta il file LICENSE per i dettagli
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.