
TLS/SSLおよびx509サポートを備えた、bluekeep脆弱性(CVE-2019-0708)を検出するPythonスクリプト
CVE-2019-0708 の BlueKeep 脆弱性を検出する Python スクリプト(TLS/SSL サポート付き)
@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