
bluekeep 취약점(CVE-2019-0708)을 탐지하는 Python 스크립트 (TLS/SSL 및 x509 지원)
TLS/SSL 지원이 포함된 BlueKeep 취약점(CVE-2019-0708) 탐지용 Python 스크립트
@zerosum0x0가 작성한 Metasploit 모듈에서 파생된 작업 https://github.com/zerosum0x0/CVE-2019-0708
RC4는 https://github.com/DavidBuchanan314/rc4에서 가져왔습니다.
detect_bluekeep.py는 pyasn1 및 cryptography Python 모듈이 필요합니다.
다음 중 하나의 방법으로 설치합니다.
pip install -r requirements.txt
또는
pip3 install pyasn1 pyasn1_modules cryptography
x509 인증서 처리 추가. issue #3 수정.
버전 0.9와 0.10은 사용하지 마세요. 이 버전들은 issue #3 실험 중 손상되었습니다.
서버가 SSL/TLS를 지원하지 않는 경우 표준 RDP 보안으로 대체합니다.
이제 스크립트는 __SSL/TLS 보안을 지원__하며, 기본적으로 활성화되어 있습니다. 표준 RDP 보안을 사용하려면 --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
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'
또는 전체 서브넷의 경우:
# ./detect_bluekeep.py 192.168.158.241/24 192.168.162.70/28
Apache 2.0