Path: blob/master/modules/exploits/router/wipg1000_cmd_injection/module.rb
1875 views
#1# Copyright (c) 2006-2026 Wade Alcorn - [email protected]2# Browser Exploitation Framework (BeEF) - https://beefproject.com3# See the file 'doc/COPYING' for copying permission4#5class Wipg1000_cmd_injection < BeEF::Core::Command6def self.options7@configuration = BeEF::Core::Configuration.instance8lhost = @configuration.beef_host9lhost = '' if lhost.to_s.eql?('0.0.0.0')1011[12{ 'name' => 'rhost', 'ui_label' => 'Target Host', 'value' => '192.168.100.10' },13{ 'name' => 'rport', 'ui_label' => 'Target Port', 'value' => '80' },14{ 'name' => 'lhost', 'ui_label' => 'Local Host', 'value' => lhost },15{ 'name' => 'lport', 'ui_label' => 'Local Port', 'value' => '4444' }16]17end1819def post_execute20save({ 'result' => @datastore['result'] })21end22end232425