Clean options

bug/bundler_fix
jvazquez-r7 2014-12-22 14:37:37 -06:00
parent 20ab14d7a3
commit 5a6c915123
3 changed files with 4 additions and 7 deletions

View File

@ -111,6 +111,8 @@ module Msf
#
# @param opts [Hash]
# @return [Rex::Proto::Kerberos::Model::KdcResponse]
# @see Msf::Kerberos::Client::AsRequest#build_as_request
# @see Rex::Proto::Kerberos::Model::KdcResponse
def send_request_as(opts = {})
connect(opts)
req = build_as_request(opts)
@ -123,6 +125,8 @@ module Msf
#
# @param opts [Hash]
# @return [Rex::Proto::Kerberos::Model::KdcResponse]
# @see Msf::Kerberos::Client::TgsRequest#build_tgs_request
# @see Rex::Proto::Kerberos::Model::KdcResponse
def send_request_tgs(opts = {})
connect(opts)
req = build_tgs_request(opts)

View File

@ -168,7 +168,6 @@ module Rex
raise ::RuntimeError, 'Kerberos Client: failed to read response'
end
puts Rex::Text.to_hex(data)
res = decode_kerb_response(data)
res

View File

@ -109,12 +109,8 @@ class Metasploit4 < Msf::Auxiliary
client_name: datastore['USER'],
server_name: "krbtgt/#{datastore['DOMAIN']}",
realm: datastore['DOMAIN'],
key: password_digest,
logon_time: logon_time,
session_key: session_key,
ticket: ticket,
group_ids: groups,
domain_id: datastore['DOMAIN_SID'],
auth_data: auth_data,
pa_data: pre_auth
)
@ -128,8 +124,6 @@ class Metasploit4 < Msf::Auxiliary
cache = extract_kerb_creds(res, 'AAAABBBBCCCCDDDD')
pp cache
f = File.new('/tmp/cache.ticket', 'wb')
f.write(cache.encode)
f.close