Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
beefproject
GitHub Repository: beefproject/beef
Path: blob/master/modules/exploits/farsite_x25_remote_shell/module.rb
1154 views
1
class Farsite_x25_remote_shell < BeEF::Core::Command
2
def self.options
3
@configuration = BeEF::Core::Configuration.instance
4
beef_host = @configuration.beef_host
5
[
6
{ 'name' => 'scheme', 'type' => 'combobox', 'ui_label' => 'HTTP(s)', 'store_type' => 'arraystore',
7
'store_fields' => ['http'], 'store_data' => [['HTTP'], ['HTTPS']],
8
'valueField' => 'http', 'displayField' => 'http', 'mode' => 'local', 'autoWidth' => true },
9
{ 'name' => 'rhost', 'ui_label' => 'Remote Host', 'value' => '10.0.0.1' },
10
{ 'name' => 'lhost', 'ui_label' => 'Local Host', 'value' => beef_host.to_s },
11
{ 'name' => 'lport', 'ui_label' => 'Local Port', 'value' => '4444' }
12
]
13
end
14
15
def post_execute
16
save({ 'result' => @datastore['result'] })
17
end
18
end
19
20