
Uma ferramenta python simples baseada no Impacket que testa servidores para várias vulnerabilidades NTLM conhecidas.
Escaneie DCs na sua rede para detectar exploração real do CVE-2020-1472
Exemplos:
python scan.py -vuln CVE-2020-1472 -target-file targets.txt
python scan.py -vuln CVE-2020-1472 -target <DC name/IP>
A ferramenta funciona testando uma senha vazia para DCs a cada minuto. Como a exploração deve definir a senha para uma vazia, a menos que seja revertida muito rapidamente, isso detectará tentativas de exploração se estiver em execução durante a exploração.
Verifica várias vulnerabilidades NTLM sobre SMB. O script estabelecerá uma conexão com o(s) host(s) alvo e enviará uma autenticação NTLM inválida. Se isso for aceito, o host é vulnerável à vulnerabilidade NTLM aplicada e você pode executar o ataque NTLM relevante. Mais detalhes em:
Nota: a maioria dos scans não gera tentativas de login falhas, pois a informação de login em si é válida. O CVE-2019-1338 gera uma autenticação falha e pode causar um bloqueio de conta.
O software é baseado no seguinte:
O script requer uma versão recente do impacket. Deve funcionar com python 2 e 3 (Python 3 requer que você use o impacket do git).
[*] 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