Sploitus

Exploit for ntlm-scanner

kitploit · 2026-08-25

Exploit Code

MARKDOWN69 lines
## https://sploitus.com/exploit?id=KITPLOIT:TOOLS-GITHUB-PREEMPT-NTLM-SCANNER
# Neu! Exploit-Scan fĂĽr CVE-2020-1472 (ZeroLogon)

Scannen Sie DCs in Ihrem Netzwerk, um _tatsächliche_ Ausnutzung von CVE-2020-1472 zu erkennen

Beispiele:

root@kitploit:~
    
    
    python scan.py -vuln CVE-2020-1472 -target-file targets.txt
    python scan.py -vuln CVE-2020-1472 -target <DC name/IP>
    

Das Tool funktioniert, indem es jede Minute ein leeres Passwort für DCs versucht. Da die Ausnutzung das Passwort auf ein leeres setzen muss, erkennt es Ausnutzungsversuche, wenn es während der Ausnutzung läuft – es sei denn, dies wird sehr schnell rückgängig gemacht.

# NTLM-Scanner

Überprüft verschiedene NTLM-Schwachstellen über SMB. Das Skript stellt eine Verbindung zum Zielhost her und sendet eine ungültige NTLM-Authentifizierung. Wird diese akzeptiert, ist der Host anfällig für die angewandte NTLM-Schwachstelle und Sie können den entsprechenden NTLM-Angriff ausführen. Weitere Details unter:

  * https://www.preempt.com/blog/how-to-easily-bypass-epa-to-compromise-any-web-server-that-supports-windows-integrated-authentication/
  * https://www.preempt.com/blog/your-session-key-is-my-session-key-how-to-retrieve-the-session-key-for-any-authentication/
  * https://www.preempt.com/blog/drop-the-mic-cve-2019-1040/
  * https://www.preempt.com/blog/drop-the-mic-2-active-directory-open-to-more-ntlm-attacks/



Hinweis: Die meisten Scans erzeugen keine fehlgeschlagenen Anmeldeversuche, da die Anmeldeinformationen selbst gĂĽltig sind. CVE-2019-1338 erzeugt jedoch eine fehlgeschlagene Authentifizierung und kann eine Kontosperrung verursachen.

Die Software basiert auf Folgendem:

  * CVE-2019-1040-Scanner (https://github.com/fox-it/cve-2019-1040-scanner) von Dirk-jan Mollema (@_dirkjan)
  * Impacket (https://github.com/SecureAuthCorp/impacket) von SecureAuth Corporation (https://www.secureauth.com/)



# Verwendung

Das Skript erfordert eine aktuelle Impacket-Version. Sollte sowohl mit Python 2 als auch 3 funktionieren (Python 3 erfordert die Verwendung von Impacket aus Git).

root@kitploit:~
    
    
    [*] 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