Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
beefproject
GitHub Repository: beefproject/beef
Path: blob/master/modules/exploits/router/wipg1000_cmd_injection/module.rb
1875 views
1
#
2
# Copyright (c) 2006-2026 Wade Alcorn - [email protected]
3
# Browser Exploitation Framework (BeEF) - https://beefproject.com
4
# See the file 'doc/COPYING' for copying permission
5
#
6
class Wipg1000_cmd_injection < BeEF::Core::Command
7
def self.options
8
@configuration = BeEF::Core::Configuration.instance
9
lhost = @configuration.beef_host
10
lhost = '' if lhost.to_s.eql?('0.0.0.0')
11
12
[
13
{ 'name' => 'rhost', 'ui_label' => 'Target Host', 'value' => '192.168.100.10' },
14
{ 'name' => 'rport', 'ui_label' => 'Target Port', 'value' => '80' },
15
{ 'name' => 'lhost', 'ui_label' => 'Local Host', 'value' => lhost },
16
{ 'name' => 'lport', 'ui_label' => 'Local Port', 'value' => '4444' }
17
]
18
end
19
20
def post_execute
21
save({ 'result' => @datastore['result'] })
22
end
23
end
24
25