Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
beefproject
GitHub Repository: beefproject/beef
Path: blob/master/modules/exploits/shell_shock_scanner/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 Shell_shock_scanner < 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' => 'method', 'ui_label' => 'HTTP Method', 'value' => 'GET' },
13
{ 'name' => 'rproto',
14
'type' => 'combobox',
15
'ui_label' => 'Target Protocol',
16
'store_type' => 'arraystore',
17
'store_fields' => ['rproto'],
18
'store_data' => [
19
['http'],
20
['https']
21
],
22
'emptyText' => 'Select a protocol (HTTP/HTTPS)',
23
'valueField' => 'rproto',
24
'displayField' => 'rproto',
25
'mode' => 'local',
26
'autoWidth' => true },
27
{ 'name' => 'rhost', 'ui_label' => 'Target Host', 'value' => '127.0.0.1' },
28
{ 'name' => 'rport', 'ui_label' => 'Target Port', 'value' => '80' },
29
{ 'name' => 'lhost', 'ui_label' => 'Local Host', 'value' => lhost },
30
{ 'name' => 'lport', 'ui_label' => 'Local Port', 'value' => '4444' },
31
{ 'name' => 'wait', 'ui_label' => 'Wait between requests (s)', 'value' => '0.3', 'width' => '100px' }
32
]
33
end
34
35
def post_execute
36
save({ 'result' => @datastore['result'] })
37
end
38
end
39
40