Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
beefproject
GitHub Repository: beefproject/beef
Path: blob/master/modules/exploits/zenoss_3x_command_execution/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
################################################################################
7
# For more information see: http://itsecuritysolutions.org/2012-07-30-zenoss-3.2.1-multiple-security-vulnerabilities/
8
################################################################################
9
class Zenoss_command_execution < BeEF::Core::Command
10
def self.options
11
@configuration = BeEF::Core::Configuration.instance
12
lhost = @configuration.beef_host
13
lhost = '' if lhost == '0.0.0.0'
14
[
15
{ 'name' => 'rhost', 'ui_label' => 'Target Host', 'value' => '127.0.0.1' },
16
{ 'name' => 'rport', 'ui_label' => 'Target Port', 'value' => '8080' },
17
{ 'name' => 'lhost', 'ui_label' => 'Local Host', 'value' => lhost },
18
{ 'name' => 'lport', 'ui_label' => 'Local Port', 'value' => '4444' },
19
{ 'name' => 'user', 'ui_label' => 'Username', 'value' => 'admin' },
20
{ 'name' => 'pass', 'ui_label' => 'Password', 'value' => 'zenoss' }
21
]
22
end
23
24
def post_execute
25
save({ 'result' => @datastore['result'] })
26
end
27
end
28
29