Class: RubySMB::Dcerpc::Request
- Inherits:
-
BinData::Record
- Object
- BinData::Record
- RubySMB::Dcerpc::Request
- Defined in:
- lib/ruby_smb/dcerpc/request.rb
Overview
The Request PDU as defined in The request PDU
Constant Summary collapse
Instance Method Summary collapse
-
#calculate_padding_size ⇒ Object
Per the spec (MS_RPCE 2.2.2.11): start of the trailer should be a multiple of 16 bytes offset from the start of the stub.
- #enable_encrypted_stub ⇒ Object
- #has_auth_verifier? ⇒ Boolean
- #initialize_instance ⇒ Object
Instance Method Details
#calculate_padding_size ⇒ Object
Per the spec (MS_RPCE 2.2.2.11): start of the trailer should be a multiple of 16 bytes offset from the start of the stub
139 140 141 |
# File 'lib/ruby_smb/dcerpc/request.rb', line 139 def calculate_padding_size (16 - (stub.num_bytes % 16)) % 16 end |
#enable_encrypted_stub ⇒ Object
148 149 150 |
# File 'lib/ruby_smb/dcerpc/request.rb', line 148 def enable_encrypted_stub @params[:endpoint] = 'Encrypted' end |
#has_auth_verifier? ⇒ Boolean
152 153 154 |
# File 'lib/ruby_smb/dcerpc/request.rb', line 152 def has_auth_verifier? self.pdu_header.auth_length > 0 end |
#initialize_instance ⇒ Object
143 144 145 146 |
# File 'lib/ruby_smb/dcerpc/request.rb', line 143 def initialize_instance super pdu_header.ptype = PTYPE end |