kerberos

package
v0.0.0-...-1d0642f Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrChecksum = errors.New("Checksum Error")

ErrChecksum represents an error during decryption

View Source
var ErrNoTicketsFound = errors.New("No tickets found")

ErrNoTicketsFound represents an error when presented with an invalid Kerberos ticket

Functions

func ExtractTicketFromKirbi

func ExtractTicketFromKirbi(filename string) ([]byte, error)

ExtractTicketFromKirbi extracts the Kerberos ticket from file

Types

type TGSRepStruct

type TGSRepStruct struct {
	K1 [md5.Size]byte
	K3 [md5.Size]byte
	// contains filtered or unexported fields
}

TGSRepStruct contains the components used for TGS-REP roasting

func New

func New() *TGSRepStruct

New returns a newly allocated instance of TGSRepStruct

func (*TGSRepStruct) Decrypt

func (k *TGSRepStruct) Decrypt(key []byte, msgType []byte, edata []byte) (data []byte, nonce []byte, err error)

Decrypt tries to decrypt the ticket data with the supplied key

func (*TGSRepStruct) NTLMHash

func (k *TGSRepStruct) NTLMHash(s string, out []byte) error

NTLMHash performs a NTLM hash algorithm on the input and saves it in `out`. `out` should be an array slice of size 16

Jump to

Keyboard shortcuts

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