Skip to content

Commit

Permalink
Update kerberos/get_ticket to return values
Browse files Browse the repository at this point in the history
  • Loading branch information
zeroSteiner committed Jan 29, 2025
1 parent 441b671 commit 5c2056b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion modules/auxiliary/admin/kerberos/get_ticket.rb
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ def validate_options
def run
validate_options

send("action_#{action.name.downcase}")
result = send("action_#{action.name.downcase}")

report_service(
host: rhost,
Expand All @@ -151,6 +151,8 @@ def run
name: 'kerberos',
info: "Module: #{fullname}, KDC for domain #{@realm}"
)

result
rescue ::Rex::ConnectionError => e
elog('Connection error', error: e)
fail_with(Failure::Unreachable, e.message)
Expand Down Expand Up @@ -276,6 +278,7 @@ def action_get_hash
print_good("Found NTLM hash for #{@username}: #{ntlm_hash}")

report_ntlm(ntlm_hash)
ntlm_hash
end

def report_ntlm(hash)
Expand Down

0 comments on commit 5c2056b

Please sign in to comment.