#
# Copyright (c) 2006-2026 Wade Alcorn - wade@bindshell.net
# Browser Exploitation Framework (BeEF) - https://beefproject.com
# See the file 'doc/COPYING' for copying permission
#
class Dlink_dgs_1100_fdb_whitelist_csrf < BeEF::Core::Command
  def self.options
    [
      { 'name' => 'base', 'ui_label' => 'Switch web root', 'value' => 'http://10.90.90.90' },
      { 'name' => 'port', 'ui_label' => 'Switch port to add MAC address access to', 'value' => '1' },
      { 'name' => 'mac', 'ui_label' => 'MAC address to whitelist', 'value' => '00-00-00-00-00-00' },
      { 'name' => 'vlanid', 'ui_label' => 'VLAN to add rule to', 'value' => '1' }
    ]
  end

  def post_execute
    save({ 'result' => @datastore['result'] })
  end
end
