Method: Wpxf::WordPress::ReflectedXss#run

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

#runBoolean

Run the module.

Returns:

  • (Boolean)

    true if successful.



24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# File 'lib/wpxf/wordpress/reflected_xss.rb', line 24

def run
  unless respond_to? 'url_with_xss'
    raise 'Required method "url_with_xss" has not been implemented'
  end

  return false unless super
  return true if aux_module?

  emit_info 'Provide the URL below to the victim to begin the payload upload'
  puts
  puts url_with_xss
  puts

  start_http_server
  @success
end