Help us shape the future of Go! Take the 2026 Go Developer Survey

kerberos

package
v0.19.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 23, 2026 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

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

func EnumerateUsers

func EnumerateUsers(ctx context.Context, target *Target, usernames []string, timeout int) ([]string, []string, error)

EnumerateUsers performs username enumeration against Kerberos Returns a list of valid usernames

func RequestServiceTicket added in v0.0.80

RequestServiceTicket requests a Kerberos service ticket (supports regular requests, traditional CD, and RBCD)

func RunASRepRoast added in v0.0.190

RunASRepRoast harvests AS-REP hashes (hashcat mode 18200) for principals with pre-auth disabled.

func RunKerberoast added in v0.0.190

RunKerberoast harvests TGS-REP hashes for target SPNs for offline cracking (hashcat modes 13100/19600/19700).

func RunPentest added in v0.0.154

RunPentest dispatches the requested Kerberos attack action(s) and assembles the report.

The result shape carries a single action's output (via the discriminated Type field) and the per-action functions (RunUserEnum, RequestServiceTicket, etc.) each consume Targets[0] only. Multi-action or multi-target invocations would silently lose data, so the dispatcher rejects them up-front.

func RunUserEnum added in v0.0.190

RunUserEnum enumerates valid AD principals via Kerberos AS-REQ error codes (credential-free).

func SprayPasswords

func SprayPasswords(ctx context.Context, target *Target, usernames []string, password string, timeout int, delayMs int) (map[string]bool, []string, error)

SprayPasswords performs password spraying against multiple users

func TestConnection

func TestConnection(ctx context.Context, target *Target, timeout int) error

TestConnection tests connectivity to the Kerberos service

Types

type Target

type Target struct {
	Host   string
	Port   int
	Domain string
}

Target represents a Kerberos domain controller target

func ParseTarget

func ParseTarget(target string) (*Target, error)

ParseTarget parses a target string into Target Supports formats: domain.com, domain.com:88, host:port

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL