lib/wmap/utils/wp_detect.rb
# Wordpress detection checkpoint - readme.html
Wordpress detection checkpoint - readme.html
Wordpress detection checkpoint - readme . html
def wp_readme?(url)
  		site = url_2_site(url)
      readme_url=site + "readme.html"
      k=Wmap::UrlChecker.new
      if k.response_code(readme_url) == 200
        k=nil
        doc=open_page(readme_url)
        title=doc.css('title')
        if title.to_s =~ /wordpress/i
          return true
        else
          return false
        end
      else
        k=nil
        return false
      end
  	rescue => ee
  		puts "Exception on method #{__method__} for site #{url}: #{ee}" if @verbose
  		return false
    end
def wp_readme? ( url ) site = url_2_site ( url ) readme_url = site + "readme.html" k = Wmap :: UrlChecker . new if k . response_code ( readme_url ) == 200 k = nil doc = open_page ( readme_url ) title = doc . css ( 'title' ) if title . to_s =~ / wordpress /i return true else return false end else k = nil return false end rescue => ee puts "Exception on method #{__method__} for site #{url}: #{ee}" if @verbose return false end
Wordpress detection checkpoint - readme.html
Wordpress detection checkpoint - readme . html
url
<not_specific>