lib/wmap/utils/wp_detect.rb
# Wordpress detection checkpoint - install.css
Wordpress detection checkpoint - install.css
Wordpress detection checkpoint - install . css
def wp_css?(url)
  		site = url_2_site(url)
      css_url = site + "wp-admin/css/install.css"
      k=Wmap::UrlChecker.new
      if k.response_code(css_url) == 200
        k=nil
        parser = CssParser::Parser.new
        parser.load_uri!(css_url)
        rule = parser.find_by_selector('#logo a')
        if rule.length >0
          if rule[0] =~ /wordpress/i
            return true
          end
        end
      else
        k=nil
        return false
      end
      return false
  	rescue => ee
  		puts "Exception on method #{__method__} for site #{url}: #{ee}" if @verbose
  		return false
    end
def wp_css? ( url ) site = url_2_site ( url ) css_url = site + "wp-admin/css/install.css" k = Wmap :: UrlChecker . new if k . response_code ( css_url ) == 200 k = nil parser = CssParser :: Parser . new parser . load_uri! ( css_url ) rule = parser . find_by_selector ( '#logo a' ) if rule . length > 0 if rule [ 0 ] =~ / wordpress /i return true end end else k = nil return false end return false rescue => ee puts "Exception on method #{__method__} for site #{url}: #{ee}" if @verbose return false end
Wordpress detection checkpoint - install.css
Wordpress detection checkpoint - install . css
url
<not_specific>