Documentation
¶
Index ¶
- func ParseLMNTHashes(authHashes string) (string, string, error)
- type Credentials
- func (c *Credentials) CanPassTheHash() bool
- func (c *Credentials) GetDomain() string
- func (c *Credentials) GetLMHash() string
- func (c *Credentials) GetNTHash() string
- func (c *Credentials) GetPassword() string
- func (c *Credentials) GetUsername() string
- func (c *Credentials) IsDomainIdentity() bool
- func (c *Credentials) IsLocalIdentity() bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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.
Click to show internal directories.
Click to hide internal directories.