Path: blob/master/modules/exploits/wanem_command_execution/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#5################################################################################6# For more information see: http://itsecuritysolutions.org/2012-08-12-WANem-v2.3-multiple-vulnerabilities/7################################################################################8class Wanem_command_execution < BeEF::Core::Command9def self.options10@configuration = BeEF::Core::Configuration.instance11lhost = @configuration.beef_host12lhost = '' if lhost == '0.0.0.0'13[14{ 'name' => 'rhost', 'ui_label' => 'Target Host', 'value' => '192.168.1.1' },15{ 'name' => 'rport', 'ui_label' => 'Target Port', 'value' => '80' },16{ 'name' => 'lhost', 'ui_label' => 'Local Host', 'value' => lhost },17{ 'name' => 'lport', 'ui_label' => 'Local Port', 'value' => '4444' }18]19end2021def post_execute22save({ 'result' => @datastore['result'] })23end24end252627