Class: Msf::Exploit::Remote::Kerberos::Model::TgtResponse

Inherits:
Object
  • Object
show all
Defined in:
lib/msf/core/exploit/remote/kerberos/model/tgt_response.rb

Overview

A helper response object associated with a call to send_request_tgt.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(as_rep:, krb_enc_key:, preauth_required:, decrypted_part:) ⇒ TgtResponse

Returns a new instance of TgtResponse.

Parameters:

Raises:

  • (ArgumentError)


22
23
24
25
26
27
28
29
30
# File 'lib/msf/core/exploit/remote/kerberos/model/tgt_response.rb', line 22

def initialize(as_rep:, krb_enc_key:, preauth_required:, decrypted_part:)
  raise ArgumentError.new("Missing required option :enctype") if krb_enc_key && krb_enc_key[:enctype].blank?
  raise ArgumentError.new("Missing required option :key") if krb_enc_key && krb_enc_key[:key].blank?

  @as_rep = as_rep
  @krb_enc_key = krb_enc_key
  @preauth_required = preauth_required
  @decrypted_part = decrypted_part
end

Instance Attribute Details

#as_repRex::Proto::Kerberos::Model::EncKdcResponse (readonly)

Returns The Kerberos AS REP.

Returns:



6
7
8
# File 'lib/msf/core/exploit/remote/kerberos/model/tgt_response.rb', line 6

def as_rep
  @as_rep
end

#decrypted_partRex::Proto::Kerberos::Model::EncKdcResponse (readonly)

Returns The decrypted enc-part.

Returns:



16
17
18
# File 'lib/msf/core/exploit/remote/kerberos/model/tgt_response.rb', line 16

def decrypted_part
  @decrypted_part
end

#krb_enc_keyHash{String => object}? (readonly)

Returns The KrbEnctype used, including enctype, key, and a salt. Nil if pre-auth was not required.

Returns:

  • (Hash{String => object}, nil)

    The KrbEnctype used, including enctype, key, and a salt. Nil if pre-auth was not required

See Also:



10
11
12
# File 'lib/msf/core/exploit/remote/kerberos/model/tgt_response.rb', line 10

def krb_enc_key
  @krb_enc_key
end

#preauth_requiredTrueClass, FalseClass (readonly)

Returns False if the ticket was created without requiring preauthentication, otherwise true.

Returns:

  • (TrueClass, FalseClass)

    False if the ticket was created without requiring preauthentication, otherwise true.



13
14
15
# File 'lib/msf/core/exploit/remote/kerberos/model/tgt_response.rb', line 13

def preauth_required
  @preauth_required
end

Instance Method Details

#ticketRex::Proto::Kerberos::Model::Ticket

Returns The Kerberos ticket.

Returns:



33
34
35
# File 'lib/msf/core/exploit/remote/kerberos/model/tgt_response.rb', line 33

def ticket
  @as_rep.ticket
end