
Script Python per rilevare la vulnerabilità BlueKeep (CVE-2019-0708) con supporto TLS/SSL e x509
Script Python per rilevare la vulnerabilità bluekeep - CVE-2019-0708 - con supporto TLS/SSL
Lavoro derivato dal modulo Metasploit scritto da @zerosum0x0 https://github.com/zerosum0x0/CVE-2019-0708
RC4 preso da https://github.com/DavidBuchanan314/rc4
detect_bluekeep.py richiede i moduli Python pyasn1 e cryptography.
Installali tramite
pip install -r requirements.txt
oppure
pip3 install pyasn1 pyasn1_modules cryptography
Aggiunta la gestione dei certificati x509. Risolto il problema #3
Non usare le versioni 0.9 e 0.10, sono rotte, durante gli esperimenti sul problema #3
Ripiega sulla sicurezza RDP standard se SSL/TLS non è supportato dal server.
Gli script ora supportano la sicurezza SSL/TLS, che è abilitata per impostazione predefinita. Se vuoi usare la sicurezza RDP standard, usa il parametro da riga di comando --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
Puoi eseguirlo con un elenco di indirizzi 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'
oppure per intere sottoreti:
# ./detect_bluekeep.py 192.168.158.241/24 192.168.162.70/28
Apache 2.0