18 lines
505 B
Ruby
Executable File
18 lines
505 B
Ruby
Executable File
#
|
|
# 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 Netgear_dgn2200_cmd_exec < BeEF::Core::Command
|
|
def self.options
|
|
[
|
|
{ 'name' => 'rhost', 'ui_label' => 'IP address', 'value' => '10.0.0.1' },
|
|
{ 'name' => 'cmd', 'ui_label' => 'Command to execute', 'value' => '' }
|
|
]
|
|
end
|
|
|
|
def post_execute
|
|
save({ 'result' => @datastore['result'] })
|
|
end
|
|
end
|