
ImpacketをベースとしたシンプルなPythonツールで、サーバーに対して様々な既知のNTLM脆弱性をテストします。
ネットワーク内のドメインコントローラをスキャンして、CVE-2020-1472の実際の悪用を検出します
例:
python scan.py -vuln CVE-2020-1472 -target-file targets.txt
python scan.py -vuln CVE-2020-1472 -target <DC name/IP>
このツールは、毎分ドメインコントローラに対して空のパスワードを試みることで動作します。悪用ではパスワードを空に設定する必要があるため、非常に迅速に元に戻さない限り、悪用中の実行中に悪用試行を検出できます。
SMBを介してさまざまなNTLM脆弱性をチェックします。 このスクリプトは対象ホストとの接続を確立し、無効なNTLM認証を送信します。これが受け入れられた場合、ホストは適用されたNTLM脆弱性に対して脆弱であり、関連するNTLM攻撃を実行できます。 詳細はこちら:
注意:ほとんどのスキャンはログイン情報自体が有効であるため、失敗したログイン試行を生成しません。CVE-2019-1338は認証失敗を生成し、アカウントのロックアウトを引き起こす可能性があります。
本ソフトウェアは以下に基づいています:
スクリプトは最新のimpacketバージョンを必要とします。Python 2と3の両方で動作するはずです(Python 3ではgitからimpacketを使用する必要があります)。
[*] NTLM vulnerabilities scanner by @YaronZi / Preempt - Based on impacket by SecureAuth
usage: scan.py [-h] [-target TARGET] [-target-file file]
[-port [destination port]] [-vuln [scanned vulnerability]]
[-hashes LMHASH:NTHASH]
NTLM scanner - Connects over SMB and attempts to authenticate with invalid
NTLM packets. If accepted, target is vulnerable to the scanned vulnerability
optional arguments:
-h, --help show this help message and exit
-target TARGET [[domain/]username[:password]@]<targetName or address>
connection:
-target-file file Use the targets in the specified file instead of the
one on the command line (you must still specify
something as target name)
-port [destination port]
Destination port to connect to SMB Server
-vuln [scanned vulnerability]
The vulnerability to scan SMB Server on [CVE-2019-1019
|CVE-2019-1040|CVE-2019-1166|CVE-2019-1338|CVE-2020-14
72]
authentication:
-hashes LMHASH:NTHASH
NTLM hashes, format is LMHASH:NTHASH