Class: Msf::Exploit::Remote::Kerberos::Model::TgtResponse
- Inherits:
-
Object
- Object
- Msf::Exploit::Remote::Kerberos::Model::TgtResponse
- 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
-
#as_rep ⇒ Rex::Proto::Kerberos::Model::EncKdcResponse
readonly
The Kerberos AS REP.
-
#decrypted_part ⇒ Rex::Proto::Kerberos::Model::EncKdcResponse
readonly
The decrypted enc-part.
-
#krb_enc_key ⇒ Hash{String => object}?
readonly
The KrbEnctype used, including enctype, key, and a salt.
-
#preauth_required ⇒ TrueClass, FalseClass
readonly
False if the ticket was created without requiring preauthentication, otherwise true.
Instance Method Summary collapse
-
#initialize(as_rep:, krb_enc_key:, preauth_required:, decrypted_part:) ⇒ TgtResponse
constructor
A new instance of TgtResponse.
-
#ticket ⇒ Rex::Proto::Kerberos::Model::Ticket
The Kerberos ticket.
Constructor Details
#initialize(as_rep:, krb_enc_key:, preauth_required:, decrypted_part:) ⇒ TgtResponse
Returns a new instance of TgtResponse.
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_rep ⇒ Rex::Proto::Kerberos::Model::EncKdcResponse (readonly)
Returns The Kerberos AS REP.
6 7 8 |
# File 'lib/msf/core/exploit/remote/kerberos/model/tgt_response.rb', line 6 def as_rep @as_rep end |
#decrypted_part ⇒ Rex::Proto::Kerberos::Model::EncKdcResponse (readonly)
Returns The decrypted enc-part.
16 17 18 |
# File 'lib/msf/core/exploit/remote/kerberos/model/tgt_response.rb', line 16 def decrypted_part @decrypted_part end |
#krb_enc_key ⇒ Hash{String => object}? (readonly)
Returns The KrbEnctype used, including enctype, key, and a salt. Nil if pre-auth was not required.
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_required ⇒ TrueClass, FalseClass (readonly)
Returns 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
#ticket ⇒ Rex::Proto::Kerberos::Model::Ticket
Returns The Kerberos ticket.
33 34 35 |
# File 'lib/msf/core/exploit/remote/kerberos/model/tgt_response.rb', line 33 def ticket @as_rep.ticket end |