Files
beef/modules/phonegap/phonegap_list_files/module.rb
jcrew99 486a9bb329 Update copyright 2023 (#2675)
* updated copyright

* reverted gemfile lock changes
2022-12-31 15:36:07 +10:00

26 lines
550 B
Ruby

#
# Copyright (c) 2006-2023 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
[{
'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