Repository navigation
Add native C# tool implementations for AD pentest dashboard - #73
Open
netanelcyber wants to merge 2 commits into
Open
netanelcyber wants to merge 2 commits into
netanelcyber wants to merge 2 commits into
Conversation
Port AD pentest tools to C# for direct execution without Python dependency: - LDAP: RootDSE queries, SPN enumeration, AS-REP roastable detection, unconstrained/constrained delegation, ADCS ESC1/ESC3 scanning - Network: parallel TCP port scanner with service fingerprinting - Email: SMTP (banner/VRFY/RCPT), POP3 (capabilities), IMAP (capabilities) - SMB: signing detection and null-session probing via raw SMB1 negotiate - Combined bNativeScan_Click handler runs all tools, stores JSON report Uses System.DirectoryServices.Protocols (LDAP), System.Net.Sockets (TCP), raw protocol handlers (SMTP/POP3/IMAP/SMB). Lab-scoped to AllowedTargets. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01UzUdU1kWmiCo1iCANQvAqm
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
- Add System.DirectoryServices.Protocols assembly reference to page directives - Add System.Net.Sockets and System.Collections.Concurrent namespace imports - Rename GetAttr to LdapGetAttr to avoid potential naming conflicts Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01UzUdU1kWmiCo1iCANQvAqm
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
core.py) to native C# inServerCode/18_NativeTools.cs(1161 lines), eliminating the Python subprocess dependency for key scanning operationsAdPentest.aspxthat runs all tools against the target, stores results as a JSON report, and displays a summary gridAllowedTargets(netanel-pt.local)How
Uses
System.DirectoryServices.Protocolsfor LDAP operations (anonymous bind, subtree search with AD-specific filters likeuserAccountControlbit flags andmsDS-AllowedToDelegateTo). Port scanning usesSystem.Net.Sockets.TcpClientwithParallel.ForEach. Email protocols use raw TCP withStreamReader/StreamWriterfor SMTP/POP3/IMAP command sequences. SMB probing sends a minimal SMB1 COM_NEGOTIATE packet and parses the SecurityMode byte from the response.🤖 Generated with Claude Code
https://claude.ai/code/session_01UzUdU1kWmiCo1iCANQvAqm
Generated by Claude Code