Generated from Manticore v1.1.5 • 201 packages. View on pkg.go.dev

credentials

import "github.com/TheManticoreProject/Manticore/windows/credentials"

Index

func ParseLMNTHashes

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

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

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.