
CVE-2024-10914 é uma vulnerabilidade crítica de injeção de comandos que afeta vários dispositivos NAS legados da D-Link.
Este script é uma prova de conceito (PoC) de exploit para o CVE-2024-10914, uma vulnerabilidade de execução remota de código em determinados dispositivos D-Link. O script identifica e explora dispositivos vulneráveis para executar comandos arbitrários.
Nota: Este script deve ser usado apenas para fins educacionais ou em ambientes autorizados. A exploração não autorizada desta vulnerabilidade pode ser ilegal e antié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 requisições HTTP)alive-progress (para barras de progresso)prompt_toolkit (para o shell interativo)argparse (para lidar com argumentos de linha de comando)Para instalar as bibliotecas necessárias, use:
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 tenta explorar uma vulnerabilidade em dispositivos D-Link, visando especificamente o seguinte
Este script é apenas para fins educacionais. Não use este script em sistemas ou redes que você não tenha permissão explícita para testar.
Os autores não são responsáveis por qualquer uso indevido desta ferramenta.
Para mais detalhes, consulte o repositório oficial no GitHub: https://github.com/ThemeHackers/CVE-2024-10914
Se você encontrar algum problema ou quiser contribuir, sinta-se à vontade para abrir uma issue ou enviar um pull request no repositório do GitHub.
Este projeto está licenciado sob a Licença MIT - consulte o arquivo LICENSE para obter detalhes
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.