Barbhack 2025 CTF (NetExec AD Lab) - Pirates #1823
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
🤖 Automated Content Update
This PR was automatically generated by the HackTricks News Bot based on a technical blog post.
📝 Source Information
🎯 Content Summary
Post scope / lab context
Writeup of the Barbhack 2025 “Pirates” NetExec Active Directory lab (CTF) showing how a small set of common Windows/AD misconfigurations and information leaks can be chained into an AD foothold (and setting up for eventual full domain compromise). Domain:
PIRATES.BRB. Author’s network uses10.2.10.0/24with attack VM10.2.10.99.Targets (Windows Server 2022 domain)
Four servers are identified:
- <b...
🔧 Technical Details
NetExec workspace + credential DB (“nxcdb”) for engagement state management: Use
nxcdbto create per-target workspaces (e.g.,workspace create pirates.brb) so host discovery and credentials found bynetexecare persisted in per-protocol SQLite DBs under~/.nxc/workspaces/<name>. Switch protocol views withproto smb|mssql|winrmand list stored secrets withcreds. Since real credentials can be captured, sanitize by deleting the workspace directory (rm -rf ~/.nxc/workspaces/<name>).Client-side secret disclosure in web UIs (masked password still in HTML): When an admin password field is “hidden” in the UI but embedded in the raw HTML (often as an
inputvalue), any user can recover it via view-source/devtools and then authenticate to protected endpoints. In this case, the leakedadmin:hplaserbarbhackcredential unlocked HTTP Ba...🤖 Agent Actions
Updated windows-hardening/active-directory-methodology/README.md with a new NetExec-driven AD recon section covering workspace handling, SMB/LDAP signing posture checks for relay feasibility, hosts-file generation, and relay-to-LDAP considerations. Added guidance on harvesting hidden printer credentials in HTML, bulk validating paired user/password lists with NetExec, and appended the Barbhack 2025 CTF blog to references.
This PR was automatically created by the HackTricks Feed Bot. Please review the changes carefully before merging.