Files
beef/modules/phonegap/phonegap_list_files/module.rb
2014-12-30 07:44:58 +10:00

28 lines
607 B
Ruby

#
# Copyright (c) 2006-2015 Wade Alcorn - wade@bindshell.net
# Browser Exploitation Framework (BeEF) - http://beefproject.com
# See the file 'doc/COPYING' for copying permission
#
# phonegap
#
class Phonegap_list_files < BeEF::Core::Command
def self.options
return [{
'name' => 'directory',
'description' => 'List files in this directory',
'ui_label'=>'Directory',
'value' => '/',
'width' => '300px'
}]
end
def callback
content = {}
content['Result'] = @datastore['result']
save content
end
end