Class: RubySMB::SMB1::Packet::Trans::PeekNmpipeRequest

Inherits:
Request show all
Defined in:
lib/ruby_smb/smb1/packet/trans/peek_nmpipe_request.rb

Overview

This class represents an SMB1 Trans PeekNamedPipe Request Packet as defined in 2.2.5.5.1 Request

Constant Summary

Constants inherited from Request

Request::COMMAND

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

#fid=(file_id) ⇒ Object



9
10
11
# File 'lib/ruby_smb/smb1/packet/trans/peek_nmpipe_request.rb', line 9

def fid=(file_id)
  parameter_block.setup = [RubySMB::SMB1::Packet::Trans::Subcommands::PEEK_NMPIPE, file_id]
end

#initialize_instanceObject



13
14
15
16
17
18
# File 'lib/ruby_smb/smb1/packet/trans/peek_nmpipe_request.rb', line 13

def initialize_instance
  super
  data_block.name = "\\PIPE\\"
  parameter_block.setup << RubySMB::SMB1::Packet::Trans::Subcommands::PEEK_NMPIPE
  parameter_block.setup_count = 2
end