Skip to content

Commit 5a6c915

Browse files
committed
Clean options
1 parent 20ab14d commit 5a6c915

File tree

3 files changed

+4
-7
lines changed

3 files changed

+4
-7
lines changed

lib/msf/kerberos/client.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,8 @@ def cleanup
111111
#
112112
# @param opts [Hash]
113113
# @return [Rex::Proto::Kerberos::Model::KdcResponse]
114+
# @see Msf::Kerberos::Client::AsRequest#build_as_request
115+
# @see Rex::Proto::Kerberos::Model::KdcResponse
114116
def send_request_as(opts = {})
115117
connect(opts)
116118
req = build_as_request(opts)
@@ -123,6 +125,8 @@ def send_request_as(opts = {})
123125
#
124126
# @param opts [Hash]
125127
# @return [Rex::Proto::Kerberos::Model::KdcResponse]
128+
# @see Msf::Kerberos::Client::TgsRequest#build_tgs_request
129+
# @see Rex::Proto::Kerberos::Model::KdcResponse
126130
def send_request_tgs(opts = {})
127131
connect(opts)
128132
req = build_tgs_request(opts)

lib/rex/proto/kerberos/client.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,6 @@ def recv_response_tcp
168168
raise ::RuntimeError, 'Kerberos Client: failed to read response'
169169
end
170170

171-
puts Rex::Text.to_hex(data)
172171
res = decode_kerb_response(data)
173172

174173
res

modules/auxiliary/admin/kerberos/ms14_068_kerberos_checksum.rb

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -109,12 +109,8 @@ def run
109109
client_name: datastore['USER'],
110110
server_name: "krbtgt/#{datastore['DOMAIN']}",
111111
realm: datastore['DOMAIN'],
112-
key: password_digest,
113-
logon_time: logon_time,
114112
session_key: session_key,
115113
ticket: ticket,
116-
group_ids: groups,
117-
domain_id: datastore['DOMAIN_SID'],
118114
auth_data: auth_data,
119115
pa_data: pre_auth
120116
)
@@ -128,8 +124,6 @@ def run
128124

129125
cache = extract_kerb_creds(res, 'AAAABBBBCCCCDDDD')
130126

131-
pp cache
132-
133127
f = File.new('/tmp/cache.ticket', 'wb')
134128
f.write(cache.encode)
135129
f.close

0 commit comments

Comments
 (0)