Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
beefproject
GitHub Repository: beefproject/beef
Path: blob/master/modules/social_engineering/lcamtuf_download/module.rb
1875 views
1
#
2
# Copyright (c) 2006-2026 Wade Alcorn - [email protected]
3
# Browser Exploitation Framework (BeEF) - https://beefproject.com
4
# See the file 'doc/COPYING' for copying permission
5
#
6
class Lcamtuf_download < BeEF::Core::Command
7
# set and return all options for this module
8
def self.options
9
[{
10
'name' => 'real_file_uri',
11
'description' => 'The web accessible URI for the real file.',
12
'ui_label' => 'Real File Path',
13
'value' => 'http://get.adobe.com/flashplayer/',
14
'width' => '300px'
15
},
16
{
17
'name' => 'malicious_file_uri',
18
'description' => 'The web accessible URI for the malicious file.',
19
'ui_label' => 'Malicious File Path',
20
'value' => '',
21
'width' => '300px'
22
},
23
{ 'name' => 'do_once', 'type' => 'combobox', 'ui_label' => 'Run Once', 'store_type' => 'arraystore',
24
'store_fields' => ['do_once'], 'store_data' => [['false'], ['true']],
25
'valueField' => 'do_once', 'displayField' => 'do_once', 'mode' => 'local', 'value' => 'false', 'autoWidth' => true }]
26
end
27
28
def post_execute
29
content = {}
30
content['result'] = @datastore['result']
31
32
save content
33
end
34
end
35
36