#
# 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 Ddwrt_v24_sp1_cmd_exec < BeEF::Core::Command
  def self.options
    [
      {
        'name' => 'host',
        'ui_label' => 'Router web root',
        'value' => 'http://192.168.1.1/'
      },
      {
        'name' => 'cmd',
        'ui_label' => 'Command',
        'value' => 'reboot'
      }
    ]
  end

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