Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
beefproject
GitHub Repository: beefproject/beef
Path: blob/master/modules/exploits/apache_felix_remote_shell/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 Apache_felix_remote_shell < BeEF::Core::Command
7
def self.options
8
configuration = BeEF::Core::Configuration.instance
9
lhost = configuration.beef_host
10
lhost = '' if lhost == '0.0.0.0'
11
[
12
{ 'name' => 'rhost', 'ui_label' => 'Target Host', 'value' => '127.0.0.1' },
13
{ 'name' => 'rport', 'ui_label' => 'Target Port', 'value' => '6666' },
14
{ 'name' => 'lhost', 'ui_label' => 'Local Host', 'value' => lhost },
15
{ 'name' => 'lport', 'ui_label' => 'Local Port', 'value' => '4444' }
16
]
17
end
18
19
def post_execute
20
save({ 'result' => @datastore['result'] })
21
end
22
end
23
24