
CVE-2024-10914 es una vulnerabilidad crítica de inyección de comandos que afecta a varios dispositivos D-Link de almacenamiento conectado a la red (NAS) antiguos.
Este script es un exploit de prueba de concepto (PoC) para CVE-2024-10914, una vulnerabilidad de ejecución remota de código en ciertos dispositivos D-Link. El script identifica y explota dispositivos vulnerables para ejecutar comandos arbitrarios.
Nota: Este script solo debe utilizarse con fines educativos o en entornos autorizados. La explotación no autorizada de esta vulnerabilidad puede ser ilegal y poco ética.
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 (para peticiones HTTP)alive-progress (para barras de progreso)prompt_toolkit (para la shell interactiva)argparse (para gestionar los argumentos de línea de comandos)Para instalar las librerías necesarias, 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
Este script intenta explotar una vulnerabilidad en dispositivos D-Link, apuntando específicamente a lo siguiente:
El exploit se lleva a cabo inyectando comandos del sistema en el endpoint vulnerable, lo que desencadena la ejecución remota de comandos arbitrarios en el dispositivo objetivo.
Este script es solo para fines educativos. No utilices este script en sistemas o redes para los que no tengas permiso explícito de prueba.
Los autores no se hacen responsables del mal uso de esta herramienta.
Para más detalles, consulta el repositorio oficial de GitHub: https://github.com/ThemeHackers/CVE-2024-10914
Si encuentras algún problema o quieres contribuir, no dudes en abrir un issue o enviar un pull request en el repositorio de GitHub.
Este proyecto está licenciado bajo la Licencia MIT - consulta el archivo LICENSE para más detalles.
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.