How mverschu/cve-2025-33073 works
This repository is a proof-of-concept for the CVE-2025-33073 NTLM-reflection attack. Its main workflow accepts attacker and target parameters, uses a coercion method to induce authentication, relays credentials through protocol-specific listeners and clients, then enables a chosen action such as secrets dumping, a custom command, or SOCKS access. It also documents SMB-signing-to-LDAPS relay and a DNS-free manual variant. The relay implementation is split among server, client, and Kerberos/SPNEGO layers; dnstool.py is a separate Active Directory DNS-record utility. Some links are documented only by the README because the main entry point and several modules were not excerpted.
Main entry points: kerberos.py Kerberos Handling · dnsrelayserver.py DNS Listener · CVE-2025-33073.py Exploit CLI · __init__.py Client Registry
Components 17
Exploit Workflow
- Exploit CLI
CVE-2025-33073.py - Coercion Method
- Post-Relay Action
Relay Listeners
- DNS Listener
lib/servers/dnsrelayserver.py - HTTP Listener
lib/servers/httprelayserver.py - SMB Listener
lib/servers/smbrelayserver.py
Relay Targets
- Client Registry
lib/clients/__init__.py - SMB Relay Client
lib/clients/smbrelayclient.py - HTTP Relay Client
lib/clients/httprelayclient.py - LDAP Relay Client
lib/clients/ldaprelayclient.py
Authentication
- Kerberos Handling
lib/utils/kerberos.py - SPNEGO Encoding
lib/utils/spnego.py - Credential Cache
lib/utils/krbcredccache.py
DNS Utility
- AD DNS Records
dnstool.py
Other components
- Operator
- Relay Target
- AD DNS Directory
Connections 23
- Operator → Exploit CLI: configures
README.md - Exploit CLI → Coercion Method: selects method
README.md - Coercion Method → DNS Listener: induces authentication
- Exploit CLI → DNS Listener: starts relay
- DNS Listener → Client Registry: selects client
lib/servers/dnsrelayserver.py - DNS Listener → Relay Target: relays authentication
lib/servers/dnsrelayserver.py - HTTP Listener → Relay Target: relays authentication
lib/servers/httprelayserver.py - SMB Listener → Relay Target: relays authentication
- Client Registry → SMB Relay Client: loads plugin
lib/clients/__init__.py - Client Registry → HTTP Relay Client: loads plugin
lib/clients/__init__.py - Client Registry → LDAP Relay Client: loads plugin
lib/clients/__init__.py - SMB Relay Client → Relay Target: opens session
- HTTP Relay Client → Relay Target: opens session
lib/clients/httprelayclient.py - LDAP Relay Client → Kerberos Handling: uses authentication
lib/clients/ldaprelayclient.py - DNS Listener → Kerberos Handling: decodes tickets
lib/servers/dnsrelayserver.py - HTTP Listener → Kerberos Handling: uses authentication
lib/servers/httprelayserver.py - SMB Listener → Kerberos Handling: uses authentication
lib/servers/smbrelayserver.py - SMB Listener → SPNEGO Encoding: encodes negotiation
lib/servers/smbrelayserver.py - Kerberos Handling → SPNEGO Encoding: decodes tokens
lib/utils/kerberos.py - Kerberos Handling → Credential Cache: builds credentials
lib/utils/kerberos.py - Exploit CLI → Post-Relay Action: runs action
README.md - Operator → AD DNS Records: manages records
- AD DNS Records → AD DNS Directory: queries or modifies
dnstool.py