
Script en Python para detectar la vulnerabilidad bluekeep (CVE-2019-0708) con soporte TLS/SSL y x509
Script de Python para detectar la vulnerabilidad Bluekeep - CVE-2019-0708 - con soporte TLS/SSL
Trabajo derivado del módulo de Metasploit escrito por @zerosum0x0 https://github.com/zerosum0x0/CVE-2019-0708
RC4 tomado de https://github.com/DavidBuchanan314/rc4
detect_bluekeep.py requiere los módulos de Python pyasn1 y cryptography.
Instálelos mediante
pip install -r requirements.txt
o
pip3 install pyasn1 pyasn1_modules cryptography
Se añadió manejo de certificados x509. Se corrigió el problema #3
No use las versiones 0.9 y 0.10, están rotas, mientras se realizaban experimentos sobre el problema #3
Retroceder a la seguridad RDP estándar si el servidor no soporta SSL/TLS.
Los scripts ahora soportan seguridad SSL/TLS, la cual está habilitada por defecto. Si desea usar la seguridad RDP estándar, use el parámetro de línea de comandos --notls.
# ./detect_bluekeep.py
usage: detect_bluekeep.py [-h] [--version] [-d] [--notls] [-l [LOGFILE]] [-w WORKERS]
[host [host ...]]
positional arguments:
host List of targets (addresses or subnets)
optional arguments:
-h, --help show this help message and exit
--version show program's version number and exit
-d, --debug verbose output
--notls disable TLS security
-l [LOGFILE], --logfile [LOGFILE]
log to file
-w WORKERS, --workers WORKERS
number of parallel worker tasks
Puede ejecutar con una lista de direcciones IPv4:
# ./detect_bluekeep.py 192.168.158.241 192.168.158.242 192.168.158.247 192.168.162.73 192.168.162.70
2019-06-03 09:58:01,255 'Starting ./detect_bluekeep.py'
2019-06-03 09:58:01,255 './detect_bluekeep.py 192.168.158.241 192.168.158.242 192.168.158.247 192.168.162.73 192.168.162.70'
2019-06-03 09:58:01,256 'Going to scan 5 hosts, in 300 parallel tasks'
2019-06-03 09:58:01,366 '[-] [192.168.162.73] Status: Unknown'
2019-06-03 09:58:02,222 '[+] [192.168.158.241] Status: Vulnerable'
2019-06-03 09:58:02,887 '[+] [192.168.158.242] Status: Vulnerable'
2019-06-03 09:58:06,262 '[-] [192.168.162.70] Status: No RDP'
2019-06-03 09:58:06,262 '[-] [192.168.158.247] Status: No RDP'
o para subredes completas:
# ./detect_bluekeep.py 192.168.158.241/24 192.168.162.70/28
Apache 2.0