Path: blob/master/modules/exploits/apache_felix_remote_shell/module.rb
1154 views
#1# Copyright (c) 2006-2025 Wade Alcorn - [email protected]2# Browser Exploitation Framework (BeEF) - https://beefproject.com3# See the file 'doc/COPYING' for copying permission4#5class Apache_felix_remote_shell < BeEF::Core::Command6def self.options7configuration = BeEF::Core::Configuration.instance8lhost = configuration.beef_host9lhost = '' if lhost == '0.0.0.0'10[11{ 'name' => 'rhost', 'ui_label' => 'Target Host', 'value' => '127.0.0.1' },12{ 'name' => 'rport', 'ui_label' => 'Target Port', 'value' => '6666' },13{ 'name' => 'lhost', 'ui_label' => 'Local Host', 'value' => lhost },14{ 'name' => 'lport', 'ui_label' => 'Local Port', 'value' => '4444' }15]16end1718def post_execute19save({ 'result' => @datastore['result'] })20end21end222324