Path: blob/master/modules/phonegap/phonegap_persistence/module.rb
1154 views
#1# Copyright (c) 2006-2025 Wade Alcorn - [email protected]2# Browser Exploitation Framework (BeEF) - https://beefproject.com3# See the file 'doc/COPYING' for copying permission4#5# phonegap persistenece6#78class Phonegap_persistence < BeEF::Core::Command9def self.options10@configuration = BeEF::Core::Configuration.instance11proto = @configuration.beef_proto12beef_host = @configuration.beef_host13beef_port = @configuration.beef_port14hook_file = @configuration.hook_file_path1516[{17'name' => 'hook_url',18'description' => 'The URL of your BeEF hook',19'ui_label' => 'Hook URL',20'value' => "#{proto}://#{beef_host}:#{beef_port}#{hook_file}",21'width' => '300px'22}]23end2425def post_execute26content = {}27content['result'] = @datastore['result']28save content29end30end313233