命名空间: kerberos
目录
类
接口
- AuthorizationDataEntry
- BitString
- EncTicketPart
- EncryptedData
- EncryptionKey
- EnumerateUserResponse
- HostAddress
- LibDefaults
- PrincipalName
- Realm
- TGS
- Ticket
- TransitedEncoding
函数
函数
ASRepToHashcat
▸ ASRepToHashcat(asrep): string | null
ASRepToHashcat 将 AS-REP 消息转换为 hashcat 格式
参数
| 名称 | 类型 |
|---|---|
asrep | any |
返回值
string | null
定义于
kerberos.ts:6CheckKrbError
▸ CheckKrbError(b): Uint8Array | null
CheckKrbError 检查来自 KDC 的响应字节是否为 KRBError。
参数
| 名称 | 类型 |
|---|---|
b | Uint8Array |
返回值
Uint8Array | null
定义于
kerberos.ts:15NewKerberosClientFromString
▸ NewKerberosClientFromString(cfg): Client | null
NewKerberosClientFromString 通过解析 krb5.conf
从字符串创建新的 kerberos 客户端
参数
| 名称 | 类型 |
|---|---|
cfg | string |
返回值
Client | null
示例
定义于
kerberos.ts:34SendToKDC
▸ SendToKDC(kclient, msg): string | null
sendtokdc.go 处理与 KDC 的实际发送和接收响应
SendToKDC 向 KDC 发送消息并返回响应。
它首先尝试通过 TCP 发送消息,如果失败,则回退到 UDP。(反之亦然)
参数
| 名称 | 类型 |
|---|---|
kclient | Client |
msg | string |
返回值
string | null
示例
定义于
kerberos.ts:51TGStoHashcat
▸ TGStoHashcat(tgs, username): string | null
TGStoHashcat 将 TGS 转换为 hashcat 格式。
参数
| 名称 | 类型 |
|---|---|
tgs | any |
username | string |
返回值
string | null