Documentation
¶
Index ¶
- func AuthenticateUser(ctx context.Context, target *Target, username, password string, timeout int) (bool, string, error)
- func EnumerateUsers(ctx context.Context, target *Target, usernames []string, timeout int) ([]string, []string, error)
- func SprayPasswords(ctx context.Context, target *Target, usernames []string, password string, ...) (map[string]bool, []string, error)
- func TestConnection(ctx context.Context, target *Target, timeout int) error
- type LibraryPentestLdap
- type Target
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AuthenticateUser ¶
func AuthenticateUser(ctx context.Context, target *Target, username, password string, timeout int) (bool, string, error)
AuthenticateUser attempts to authenticate a single user with a password against LDAP
func EnumerateUsers ¶
func EnumerateUsers(ctx context.Context, target *Target, usernames []string, timeout int) ([]string, []string, error)
EnumerateUsers performs username enumeration against LDAP Returns a list of valid usernames found in the directory
Types ¶
type LibraryPentestLdap ¶ added in v0.0.54
type LibraryPentestLdap struct{}
func (*LibraryPentestLdap) DomainDump ¶ added in v0.0.54
func (l *LibraryPentestLdap) DomainDump(ctx context.Context, config ldapfern.PentestLdapConfig) (*ldapfern.PentestLdapResult, []string)
func (*LibraryPentestLdap) PentestLdap ¶ added in v0.0.54
func (l *LibraryPentestLdap) PentestLdap(ctx context.Context, config ldapfern.PentestLdapConfig) (*ldapfern.PentestLdapResult, []string)
PentestLdap performs LDAP penetration testing based on the provided configuration
type Target ¶
Target represents an LDAP server target
func ParseTarget ¶
ParseTarget parses a target string into Target Supports formats: host:port, host Port 636 enables SSL (LDAPS), port 389 uses plain LDAP
Click to show internal directories.
Click to hide internal directories.