Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
beefproject
GitHub Repository: beefproject/beef
Path: blob/master/modules/exploits/router/ddwrt_v24_sp1_cmd_exec/module.rb
1154 views
1
#
2
# Copyright (c) 2006-2025 Wade Alcorn - [email protected]
3
# Browser Exploitation Framework (BeEF) - https://beefproject.com
4
# See the file 'doc/COPYING' for copying permission
5
#
6
class Ddwrt_v24_sp1_cmd_exec < BeEF::Core::Command
7
def self.options
8
[
9
{
10
'name' => 'host',
11
'ui_label' => 'Router web root',
12
'value' => 'http://192.168.1.1/'
13
},
14
{
15
'name' => 'cmd',
16
'ui_label' => 'Command',
17
'value' => 'reboot'
18
}
19
]
20
end
21
22
def post_execute
23
save('result' => @datastore['result'])
24
end
25
end
26
27