#
# 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_port_mirroring_csrf < BeEF::Core::Command
  def self.options
    [
      { 'name' => 'base', 'ui_label' => 'Switch web root', 'value' => 'http://10.90.90.90' },
      { 'name' => 'mirrorport', 'ui_label' => 'Switch port to mirror traffic on', 'value' => 1 },
      { 'name' => 'totalports', 'ui_label' => 'Total number of ports on switch', 'value' => 8 }
    ]
  end

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