Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
beefproject
GitHub Repository: beefproject/beef
Path: blob/master/modules/phonegap/phonegap_persistence/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
# phonegap persistenece
7
#
8
9
class Phonegap_persistence < BeEF::Core::Command
10
def self.options
11
@configuration = BeEF::Core::Configuration.instance
12
proto = @configuration.beef_proto
13
beef_host = @configuration.beef_host
14
beef_port = @configuration.beef_port
15
hook_file = @configuration.hook_file_path
16
17
[{
18
'name' => 'hook_url',
19
'description' => 'The URL of your BeEF hook',
20
'ui_label' => 'Hook URL',
21
'value' => "#{proto}://#{beef_host}:#{beef_port}#{hook_file}",
22
'width' => '300px'
23
}]
24
end
25
26
def post_execute
27
content = {}
28
content['result'] = @datastore['result']
29
save content
30
end
31
end
32
33