File tree Expand file tree Collapse file tree 3 files changed +4
-7
lines changed
modules/auxiliary/admin/kerberos Expand file tree Collapse file tree 3 files changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -111,6 +111,8 @@ def cleanup
111
111
#
112
112
# @param opts [Hash]
113
113
# @return [Rex::Proto::Kerberos::Model::KdcResponse]
114
+ # @see Msf::Kerberos::Client::AsRequest#build_as_request
115
+ # @see Rex::Proto::Kerberos::Model::KdcResponse
114
116
def send_request_as ( opts = { } )
115
117
connect ( opts )
116
118
req = build_as_request ( opts )
@@ -123,6 +125,8 @@ def send_request_as(opts = {})
123
125
#
124
126
# @param opts [Hash]
125
127
# @return [Rex::Proto::Kerberos::Model::KdcResponse]
128
+ # @see Msf::Kerberos::Client::TgsRequest#build_tgs_request
129
+ # @see Rex::Proto::Kerberos::Model::KdcResponse
126
130
def send_request_tgs ( opts = { } )
127
131
connect ( opts )
128
132
req = build_tgs_request ( opts )
Original file line number Diff line number Diff line change @@ -168,7 +168,6 @@ def recv_response_tcp
168
168
raise ::RuntimeError , 'Kerberos Client: failed to read response'
169
169
end
170
170
171
- puts Rex ::Text . to_hex ( data )
172
171
res = decode_kerb_response ( data )
173
172
174
173
res
Original file line number Diff line number Diff line change @@ -109,12 +109,8 @@ def run
109
109
client_name : datastore [ 'USER' ] ,
110
110
server_name : "krbtgt/#{ datastore [ 'DOMAIN' ] } " ,
111
111
realm : datastore [ 'DOMAIN' ] ,
112
- key : password_digest ,
113
- logon_time : logon_time ,
114
112
session_key : session_key ,
115
113
ticket : ticket ,
116
- group_ids : groups ,
117
- domain_id : datastore [ 'DOMAIN_SID' ] ,
118
114
auth_data : auth_data ,
119
115
pa_data : pre_auth
120
116
)
@@ -128,8 +124,6 @@ def run
128
124
129
125
cache = extract_kerb_creds ( res , 'AAAABBBBCCCCDDDD' )
130
126
131
- pp cache
132
-
133
127
f = File . new ( '/tmp/cache.ticket' , 'wb' )
134
128
f . write ( cache . encode )
135
129
f . close
You can’t perform that action at this time.
0 commit comments