Path: blob/master/modules/exploits/shell_shock_scanner/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 Shell_shock_scanner < BeEF::Core::Command6def self.options7configuration = BeEF::Core::Configuration.instance8lhost = configuration.beef_host9lhost = '' if lhost == '0.0.0.0'10[11{ 'name' => 'method', 'ui_label' => 'HTTP Method', 'value' => 'GET' },12{ 'name' => 'rproto',13'type' => 'combobox',14'ui_label' => 'Target Protocol',15'store_type' => 'arraystore',16'store_fields' => ['rproto'],17'store_data' => [18['http'],19['https']20],21'emptyText' => 'Select a protocol (HTTP/HTTPS)',22'valueField' => 'rproto',23'displayField' => 'rproto',24'mode' => 'local',25'autoWidth' => true },26{ 'name' => 'rhost', 'ui_label' => 'Target Host', 'value' => '127.0.0.1' },27{ 'name' => 'rport', 'ui_label' => 'Target Port', 'value' => '80' },28{ 'name' => 'lhost', 'ui_label' => 'Local Host', 'value' => lhost },29{ 'name' => 'lport', 'ui_label' => 'Local Port', 'value' => '4444' },30{ 'name' => 'wait', 'ui_label' => 'Wait between requests (s)', 'value' => '0.3', 'width' => '100px' }31]32end3334def post_execute35save({ 'result' => @datastore['result'] })36end37end383940