Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
beefproject
GitHub Repository: beefproject/beef
Path: blob/master/modules/browser/play_sound/module.rb
1155 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 Play_sound < BeEF::Core::Command
7
def self.options
8
[{
9
'name' => 'sound_file_uri',
10
'description' => 'The web accessible URI for the wave sound file.',
11
'ui_label' => 'Sound File Path',
12
'value' => '',
13
'width' => '300px'
14
}]
15
end
16
17
def post_execute
18
content = {}
19
content['result'] = @datastore['result']
20
21
save content
22
end
23
end
24
25