Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
beefproject
GitHub Repository: beefproject/beef
Path: blob/master/modules/exploits/beefbind/beef_bind_shell/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 Beef_bind_shell < BeEF::Core::Command
7
def self.options
8
[
9
{ 'name' => 'rhost', 'ui_label' => 'Host', 'value' => '127.0.0.1' },
10
{ 'name' => 'rport', 'ui_label' => 'BeEF Bind Port', 'value' => '4444' },
11
{ 'name' => 'path', 'ui_label' => 'Path', 'value' => '/' },
12
{ 'name' => 'cmd', 'ui_label' => 'Command', 'value' => 'hostname' },
13
{ 'name' => 'shellcode', 'type' => 'combobox', 'ui_label' => 'BeEF Bind Shellcode', 'store_type' => 'arraystore',
14
'store_fields' => ['shellcode'], 'store_data' => [['Windows'], ['Linux']],
15
'valueField' => 'shellcode', 'displayField' => 'shellcode', 'mode' => 'local', 'autoWidth' => true }
16
]
17
end
18
19
def post_execute
20
save({ 'result' => @datastore['result'] })
21
end
22
end
23
24