Sha256: 4b0b994a9b777bd7f53f2005bff363ed710685895e5c06f82bb420730f71453b

Contents?: true

Size: 839 Bytes

Versions: 4

Compression:

Stored size: 839 Bytes

Contents

# This file is part of packetgen-plugin-smb.
# See https://github.com/sdaubert/packetgen-plugin-smb for more informations
# Copyright (C) 2018 Sylvain Daubert <sylvain.daubert@laposte.net>
# This program is published under MIT license.

# frozen_string_literal: true

module PacketGen::Plugin
  class SMB
    class Browser
      # Local master announcement browser frame.
      #
      # Such a frame is used by a local master of a machine group to
      # advertise its presence.
      # @author Sylvain Daubert
      class LocalMasterAnnouncement < HostAnnouncement
        update_field :opcode, default: 15
      end
      PacketGen::Header.add_class LocalMasterAnnouncement
      SMB::Trans::Request.bind LocalMasterAnnouncement, name: '\\MAILSLOT\\BROWSE', body: ->(v) { v[0] == OPCODES['LocalMasterAnnouncement'] }
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
packetgen-plugin-smb-0.6.1 lib/packetgen/plugin/smb/browser/local_master_announcement.rb
packetgen-plugin-smb-0.6.0 lib/packetgen/plugin/smb/browser/local_master_announcement.rb
packetgen-plugin-smb-0.5.0 lib/packetgen/plugin/smb/browser/local_master_announcement.rb
packetgen-plugin-smb-0.4.0 lib/packetgen/plugin/smb/browser/local_master_announcement.rb