Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
beefproject
GitHub Repository: beefproject/beef
Path: blob/master/modules/social_engineering/fake_flash_update/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 Fake_flash_update < BeEF::Core::Command
7
def pre_send
8
BeEF::Core::NetworkStack::Handlers::AssetHandler.instance.bind('/modules/social_engineering/fake_flash_update/img/eng.png', '/adobe/flash_update', 'png')
9
end
10
11
def self.options
12
@configuration = BeEF::Core::Configuration.instance
13
proto = @configuration.beef_proto
14
beef_host = @configuration.beef_host
15
beef_port = @configuration.beef_port
16
base_host = "#{proto}://#{beef_host}:#{beef_port}"
17
18
image = "#{base_host}/adobe/flash_update.png"
19
20
[
21
{ 'name' => 'image', 'description' => 'Location of image for the update prompt', 'ui_label' => 'Image', 'value' => image },
22
{ 'name' => 'payload_uri', 'description' => 'Payload URI', 'ui_label' => 'Payload URI', 'value' => '' }
23
]
24
end
25
26
def post_execute
27
content = {}
28
content['result'] = @datastore['result']
29
save content
30
31
BeEF::Core::NetworkStack::Handlers::AssetHandler.instance.unbind('/adobe/flash_update.png')
32
end
33
end
34
35