Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.
Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.
Path: blob/master/documentation/modules/auxiliary/admin/kerberos/ticket_converter.md
Views: 11784
Converting Kerberos Tickets
The auxiliary/admin/kerberos/ticket_converter
module is used to convert from a ccache file format to the kirbi file format and vice versa. The main reason you may want to convert between these file types is for use in different tools. For example mimikatz will create tickets for you in the kirbi format but to use that in another tool like Metasploit or Impacket you need to convert it to the ccache format first.
Acquiring tickets
Kerberos tickets can be acquired from multiple sources. For instance:
Retrieved directly from the KDC with the
get_ticket
moduleForged using the
forge_ticket
module after compromising the krbtgt or a service account's encryption keysExtracted from memory using Meterpreter and mimikatz:
Note that tools often Base64 encode the Kirbi content to display to the user. However the inspect_ticket
module expects the input file to be in binary format. To convert base64 strings to binary files:
Module usage
Start msfconsole
Do:
use auxiliary/admin/kerberos/ticket_converter
Do:
set InputPath /path/to/ccache/or/kirbi/file
Do:
set OutputPath /path/to/save/your/converted/file
Do:
run
You should see output similar to:
Your converted ticket which will have been stored at
OutputPath
Example usage in Metasploit:
Example usage in impacket:
You may use the
inspect_ticket
module to prints the contents of the ccache/kirbi file:use auxiliary/admin/kerberos/inspect_ticket
Scenarios
You have a ccache file
If you have a ccache file, for example by forging it using the auxiliary/admin/kerberos/forge_ticket
module, but need a file in the kirbi format which is commonly used by mimikatz.
Set the InputPath
to the location of your ccache file, specify your desired output location with OutputPath
and run
. Metasploit will automatically detect the file type so there's no need to tell msfconsole whether it's a ccache or kirbi file.
Example:
You have a kirbi file
The other scenario is if you have a kirbi file, for example tools such as mimikatz will give you tickets in the kirbi format, and you need a ccache for use with another tool such as Metasploit and Impacket.
The steps are exactly the same for a kirbi file as they are for a ccache as Metasploit will automatically detect the input file type.
Set the InputPath
to the location of your ccache file, specify your desired output location with OutputPath
and run
. Metasploit will automatically detect the file type so there's no need to tell msfconsole whether it's a ccache or kirbi file.
Example: