Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
beefproject
GitHub Repository: beefproject/beef
Path: blob/master/modules/exploits/router/ddwrt_v24_sp1_csrf/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_csrf < 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' => 'password',
16
'ui_label' => 'Desired password',
17
'value' => '__BeEF__'
18
},
19
{
20
'name' => 'port',
21
'ui_label' => 'Desired web ui port',
22
'value' => '8080'
23
},
24
{
25
'name' => 'telnet',
26
'ui_label' => 'Desired telnet port',
27
'value' => '23'
28
}
29
]
30
end
31
32
def post_execute
33
save('result' => @datastore['result'])
34
end
35
end
36
37