optkrb5

package
v0.0.0-...-8d0f603 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2024 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ASREPToHashcat

func ASREPToHashcat(asrep messages.ASRep) string

func TGSToHashcat

func TGSToHashcat(tgs messages.Ticket, username string) string

Types

type AsRepTGT

type AsRepTGT struct {
	Ticket *messages.ASRep
	User   string
	Hash   string
}

type ErrorRequiresPreauth

type ErrorRequiresPreauth struct {
	// contains filtered or unexported fields
}

func (*ErrorRequiresPreauth) Error

func (e *ErrorRequiresPreauth) Error() string

type KerberosClient

type KerberosClient struct {
	Realm string
	KDCs  map[int]string
	// contains filtered or unexported fields
}

Client is a kerberos client

func NewKerberosClient

func NewKerberosClient(domain, controller string) (*KerberosClient, error)

func (*KerberosClient) AuthenticateWithKeytab

func (kc *KerberosClient) AuthenticateWithKeytab(username, keytabPath string) error

func (*KerberosClient) AuthenticateWithPassword

func (kc *KerberosClient) AuthenticateWithPassword(username, password string)

func (*KerberosClient) Close

func (c *KerberosClient) Close()

func (*KerberosClient) GetAsReqTgt

func (c *KerberosClient) GetAsReqTgt(username string) (*AsRepTGT, error)

func (*KerberosClient) GetServiceTicket

func (c *KerberosClient) GetServiceTicket(target, spn string) (*TGS, error)

func (*KerberosClient) TestLogin

func (c *KerberosClient) TestLogin(username, password string) (bool, error)

type Options

type Options struct {
	Targets struct {
		TARGETS []string `description:"Provide target IP/FQDN/FILE"`
	} `positional-args:"yes"`

	Connection struct {
		Username string `short:"u" description:"Provide username (or FILE)"`
		Password string `short:"p" description:"Provide password (or FILE)"`
		Domain   string `short:"d" long:"domain" description:"Provide domain"`
	} `group:"Connection Options" description:"Connection Options"`

	Mode struct {
		UserEnum  bool `long:"user-enum" description:"Enumerate valid usernames via kerberos"`
		Responder bool `long:"responder" description:"Launch a responder (testing)"`
	} `group:"Attack Mode"`

	BruteforceStrategy struct {
		ClusterBomb bool `long:"clusterbomb" description:"payload sets in clusterbomb mode (default)"`
		Pitchfork   bool `long:"pitchfork" description:"payload sets in pitchfork mode"`
	} `group:"Bruteforce Strategy"`
	// contains filtered or unexported fields
}

func (*Options) Run

func (o *Options) Run()

type TGS

type TGS struct {
	Ticket               messages.Ticket
	TargetUser           string
	ServicePrincipalName string
	Hash                 string
}

Jump to

Keyboard shortcuts

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