credentials

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: May 31, 2025 License: GPL-3.0 Imports: 3 Imported by: 10

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseLMNTHashes

func ParseLMNTHashes(authHashes string) (string, string, error)

ParseLMNTHashes parses the NT/LM hashes and returns the LM hash and NT hash.

Types

type Credentials

type Credentials struct {
	Domain   string
	Username string
	Password string

	LMHash string
	NTHash string
}

func NewCredentials

func NewCredentials(authDomain, authUsername, authPassword, authHashes string) (*Credentials, error)

NewCredentials creates a new Credentials object. authDomain is the domain to authenticate to. authUsername is the username to authenticate as. authPassword is the password to authenticate with. authHashes is the NT/LM hashes to use for authentication.

func (*Credentials) CanPassTheHash

func (c *Credentials) CanPassTheHash() bool

CanPassTheHash returns true if the credentials can be used to pass the hash attack.

func (*Credentials) GetDomain

func (c *Credentials) GetDomain() string

func (*Credentials) GetLMHash

func (c *Credentials) GetLMHash() string

func (*Credentials) GetNTHash

func (c *Credentials) GetNTHash() string

func (*Credentials) GetPassword

func (c *Credentials) GetPassword() string

func (*Credentials) GetUsername

func (c *Credentials) GetUsername() string

func (*Credentials) IsDomainIdentity

func (c *Credentials) IsDomainIdentity() bool

IsDomain returns true if the credentials are for a domain.

func (*Credentials) IsLocalIdentity

func (c *Credentials) IsLocalIdentity() bool

IsLocal returns true if the credentials are for a local account.

Jump to

Keyboard shortcuts

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