Sha256: db64e952b0c7f3d0e51627584bcd4173e49d83a02ef974c73093acd8492071e5

Contents?: true

Size: 839 Bytes

Versions: 2

Compression:

Stored size: 839 Bytes

Contents

# frozen_string_literal: true

# 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.

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

2 entries across 2 versions & 1 rubygems

Version Path
packetgen-plugin-smb-0.6.3 lib/packetgen/plugin/smb/browser/local_master_announcement.rb
packetgen-plugin-smb-0.6.2 lib/packetgen/plugin/smb/browser/local_master_announcement.rb