Path: blob/master/modules/social_engineering/lcamtuf_download/module.rb
1875 views
#1# Copyright (c) 2006-2026 Wade Alcorn - [email protected]2# Browser Exploitation Framework (BeEF) - https://beefproject.com3# See the file 'doc/COPYING' for copying permission4#5class Lcamtuf_download < BeEF::Core::Command6# set and return all options for this module7def self.options8[{9'name' => 'real_file_uri',10'description' => 'The web accessible URI for the real file.',11'ui_label' => 'Real File Path',12'value' => 'http://get.adobe.com/flashplayer/',13'width' => '300px'14},15{16'name' => 'malicious_file_uri',17'description' => 'The web accessible URI for the malicious file.',18'ui_label' => 'Malicious File Path',19'value' => '',20'width' => '300px'21},22{ 'name' => 'do_once', 'type' => 'combobox', 'ui_label' => 'Run Once', 'store_type' => 'arraystore',23'store_fields' => ['do_once'], 'store_data' => [['false'], ['true']],24'valueField' => 'do_once', 'displayField' => 'do_once', 'mode' => 'local', 'value' => 'false', 'autoWidth' => true }]25end2627def post_execute28content = {}29content['result'] = @datastore['result']3031save content32end33end343536