Namespace: kerberos
Table of contents
Classes
Interfaces
- AuthorizationDataEntry
- BitString
- EncTicketPart
- EncryptedData
- EncryptionKey
- EnumerateUserResponse
- HostAddress
- LibDefaults
- PrincipalName
- Realm
- TGS
- Ticket
- TransitedEncoding
Functions
Functions
ASRepToHashcat
▸ ASRepToHashcat(asrep): string | null
ASRepToHashcat converts an AS-REP message to a hashcat format
Parameters
| Name | Type | 
|---|---|
| asrep | any | 
Returns
string | null
Defined in
kerberos.ts:6CheckKrbError
▸ CheckKrbError(b): Uint8Array | null
CheckKrbError checks if the response bytes from the KDC are a KRBError.
Parameters
| Name | Type | 
|---|---|
| b | Uint8Array | 
Returns
Uint8Array | null
Defined in
kerberos.ts:15NewKerberosClientFromString
▸ NewKerberosClientFromString(cfg): Client | null
NewKerberosClientFromString creates a new kerberos client from a string
by parsing krb5.conf
Parameters
| Name | Type | 
|---|---|
| cfg | string | 
Returns
Client | null
Example
Defined in
kerberos.ts:34SendToKDC
▸ SendToKDC(kclient, msg): string | null
sendtokdc.go deals with actual sending and receiving responses from KDC
SendToKDC sends a message to the KDC and returns the response.
It first tries to send the message over TCP, and if that fails, it falls back to UDP.(and vice versa)
Parameters
| Name | Type | 
|---|---|
| kclient | Client | 
| msg | string | 
Returns
string | null
Example
Defined in
kerberos.ts:51TGStoHashcat
▸ TGStoHashcat(tgs, username): string | null
TGStoHashcat converts a TGS to a hashcat format.
Parameters
| Name | Type | 
|---|---|
| tgs | any | 
| username | string | 
Returns
string | null