Files
beef/modules/exploits/router/ddwrt_v24_sp1_cmd_exec/module.rb
wheatley f33e2698a0 MAINTAINABILITY: 2257 update copyright 2022 (#2259)
* 2257 updated copyright date
2021-12-31 09:48:08 +10:00

28 lines
611 B
Ruby

#
# Copyright (c) 2006-2022 Wade Alcorn - wade@bindshell.net
# Browser Exploitation Framework (BeEF) - http://beefproject.com
# See the file 'doc/COPYING' for copying permission
#
class Ddwrt_v24_sp1_cmd_exec < BeEF::Core::Command
def self.options
return [
{
'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