Class: Rex::Proto::Kerberos::Pac::Krb5PacCredentialInfo
- Inherits:
-
BinData::Record
- Object
- BinData::Record
- Rex::Proto::Kerberos::Pac::Krb5PacCredentialInfo
- Defined in:
- lib/rex/proto/kerberos/pac/krb5_pac.rb
Overview
See [2.6.1 PAC_CREDENTIAL_INFO](learn.microsoft.com/en-us/openspecs/windows_protocols/ms-pac/cc919d0c-f2eb-4f21-b487-080c486d85fe)
Instance Attribute Summary collapse
-
#ul_type ⇒ Integer
readonly
Describes the type of data present.
Instance Method Summary collapse
Instance Attribute Details
#ul_type ⇒ Integer (readonly)
Returns Describes the type of data present.
654 |
# File 'lib/rex/proto/kerberos/pac/krb5_pac.rb', line 654 virtual :ul_type, value: Krb5PacElementType::CREDENTIAL_INFORMATION |
Instance Method Details
#decrypt_serialized_data(key) ⇒ Object
660 661 662 663 664 665 666 667 668 |
# File 'lib/rex/proto/kerberos/pac/krb5_pac.rb', line 660 def decrypt_serialized_data(key) encryptor = Rex::Proto::Kerberos::Crypto::Encryption::from_etype(self.encryption_type) decrypted_serialized_data = encryptor.decrypt( self.serialized_data.to_binary_s, key, Rex::Proto::Kerberos::Crypto::KeyUsage::KERB_NON_KERB_SALT ) Krb5SerializedPacCredentialData.read(decrypted_serialized_data) end |