Method: Wpxf::WordPress::FileDownload#initialize

Defined in:
lib/wpxf/wordpress/file_download.rb

#initializeObject

Initialize a new instance of Wpxf::WordPress::FileDownload



13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# File 'lib/wpxf/wordpress/file_download.rb', line 13

def initialize
  super
  return unless register_remote_file_option?

  _update_info_without_validation(
    desc: %(
      This module exploits a vulnerability which allows you to
      download any arbitrary file (relative to #{working_directory})
      accessible by the user the web server is running as.
    )
  )

  register_option(
    StringOption.new(
      name: 'remote_file',
      desc: 'The path to the remote file',
      required: true,
      default: default_remote_file_path
    )
  )
end