Files

WpReadme

Public Instance Methods

has_readme?() click to toggle source

Checks to see if the readme.html file exists

This file comes by default in a wordpress installation, and if deleted is reinstated with an upgrade.

# File lib/wpscan/modules/wp_readme.rb, line 25
def has_readme?
  response = Browser.instance.get(readme_url())

  unless response.code == 404
    response.body =~ %{wordpress}
  end
end
readme_url() click to toggle source
# File lib/wpscan/modules/wp_readme.rb, line 33
def readme_url
  @uri.merge("readme.html").to_s
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.