Class: RubySMB::SMB1::Packet::Trans::TransactNmpipeRequest

Inherits:
GenericPacket
  • Object
show all
Defined in:
lib/ruby_smb/smb1/packet/trans/transact_nmpipe_request.rb

Overview

A Trans TRANSACT_NMPIPE Request Packet as defined in 2.2.5.6.1 Request

Defined Under Namespace

Classes: DataBlock, ParameterBlock, TransData

Constant Summary collapse

COMMAND =
RubySMB::SMB1::Commands::SMB_COM_TRANSACTION

Instance Method Summary collapse

Methods inherited from GenericPacket

describe, #display, fields_hashed, format_field, from_hex, #packet_smb_version, read, #status_code, #valid?, walk_fields

Instance Method Details

#initialize_instanceObject



44
45
46
47
48
49
50
51
52
# File 'lib/ruby_smb/smb1/packet/trans/transact_nmpipe_request.rb', line 44

def initialize_instance
  super
  parameter_block.max_parameter_count = 0x0000
  parameter_block.max_setup_count = 0x00
  parameter_block.setup << RubySMB::SMB1::Packet::Trans::Subcommands::TRANSACT_NMPIPE
  # FID: must be set to a valid FID from a server response for a
  # previous SMB command to open or create a named pipe.
  parameter_block.setup << 0x0000
end

#set_fid(fid) ⇒ Object



54
55
56
# File 'lib/ruby_smb/smb1/packet/trans/transact_nmpipe_request.rb', line 54

def set_fid(fid)
  parameter_block.setup[1] = fid
end