How ustayready/sharphose works
SharpHose is a command-line Active Directory password-spraying and account-policy inspection tool. Its main workflow parses CLI options, configures the LDAP nozzle, discovers users and password policies, classifies users for lockout safety, applies exclusions, and attempts asynchronous password checks; it also reports policies, policy users, and enabled users. The graph includes the shared nozzle/configuration layer and output logging. Some LDAP implementation details are unsampled, so internal links beyond excerpted or documented behavior are omitted.
Main entry points: LDAPNozzle.cs LDAP nozzle · Program.cs Command routing · CLIOptions.cs CLI options · LDAPConfig.cs LDAP configuration
Components 16
CLI entry
- CLI options
SharpHose/Common/Objects/CLIOptions.cs - Command routing
SharpHose/Program.cs
Shared nozzle framework
- Nozzle contract and states
SharpHose/Common - Nozzle base
SharpHose/Common/Objects/Nozzle.cs - Base configuration
SharpHose/Common/Objects/NozzleConfig.cs
LDAP operations
- LDAP configuration
SharpHose/Nozzles/LDAP/LDAPConfig.cs - LDAP actions
SharpHose/Nozzles/LDAP/LDAPAction.cs - LDAP nozzle
SharpHose/Nozzles/LDAP/LDAPNozzle.cs - Domain context detection
SharpHose/Common/Helpers/ContextHelper.cs - LDAP user records
SharpHose/Nozzles/LDAP/LDAPUserInfo.cs - LDAP policy helpers
SharpHose/Nozzles/LDAP/LDAPExtensions.cs
Results and logging
- Console logger
SharpHose/Common/Helpers/BaseLoggerHelper.cs
Other components
- Operator
- Active Directory
- Exclusion list
- Console or output files
Connections 16
- Operator → CLI options: provides options
README.md - CLI options → Command routing: supplies parsed options
SharpHose/Program.cs - Command routing → LDAP configuration: builds configuration
SharpHose/Program.cs - Command routing → LDAP nozzle: dispatches actions
SharpHose/Program.cs - Command routing → LDAP actions: routes action values
SharpHose/Program.cs - LDAP configuration → Base configuration: extends
SharpHose/Nozzles/LDAP/LDAPConfig.cs - LDAP nozzle → Nozzle base: inherits
SharpHose/Nozzles/LDAP/LDAPNozzle.cs - LDAP nozzle → Domain context detection: checks join context
SharpHose/Nozzles/LDAP/LDAPNozzle.cs - LDAP nozzle → LDAP user records: constructs user records
SharpHose/Nozzles/LDAP/LDAPNozzle.cs - LDAP nozzle → Active Directory: queries policies and users
README.md - LDAP nozzle → Active Directory: checks credentials
README.md - LDAP nozzle → Exclusion list: filters spray targets
SharpHose/Nozzles/LDAP/LDAPNozzle.cs - LDAP nozzle → LDAP policy helpers: uses policy helpers
- LDAP nozzle → Console logger: logs progress
SharpHose/Nozzles/LDAP/LDAPNozzle.cs - LDAP nozzle → Console or output files: writes reports
SharpHose/Nozzles/LDAP/LDAPNozzle.cs - Console logger → Console or output files: prints messages
SharpHose/Common/Helpers/BaseLoggerHelper.cs