Skip to content

Commit 5c2056b

Browse files
committed
Update kerberos/get_ticket to return values
1 parent 441b671 commit 5c2056b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

modules/auxiliary/admin/kerberos/get_ticket.rb

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ def validate_options
142142
def run
143143
validate_options
144144

145-
send("action_#{action.name.downcase}")
145+
result = send("action_#{action.name.downcase}")
146146

147147
report_service(
148148
host: rhost,
@@ -151,6 +151,8 @@ def run
151151
name: 'kerberos',
152152
info: "Module: #{fullname}, KDC for domain #{@realm}"
153153
)
154+
155+
result
154156
rescue ::Rex::ConnectionError => e
155157
elog('Connection error', error: e)
156158
fail_with(Failure::Unreachable, e.message)
@@ -276,6 +278,7 @@ def action_get_hash
276278
print_good("Found NTLM hash for #{@username}: #{ntlm_hash}")
277279

278280
report_ntlm(ntlm_hash)
281+
ntlm_hash
279282
end
280283

281284
def report_ntlm(hash)

0 commit comments

Comments
 (0)