"Fossies" - the Fresh Open Source Software Archive

Member "WhatWeb-0.5.5/plugins/achecker.rb" (15 Jan 2021, 1201 Bytes) of package /linux/www/WhatWeb-0.5.5.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Ruby source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file.

    1 ##
    2 # This file is part of WhatWeb and may be subject to
    3 # redistribution and commercial restrictions. Please see the WhatWeb
    4 # web site for more information on licensing and terms of use.
    5 # https://www.morningstarsecurity.com/research/whatweb
    6 ##
    7 Plugin.define do
    8 name "AChecker"
    9 authors [
   10   "Brendan Coles <bcoles@gmail.com>", # 2010-09-17
   11 ]
   12 version "0.1"
   13 description "AChecker  is an open source Web accessibility evaluation tool. It can be used to review the accessibility of Web pages based on a variety international accessibility guidelines."
   14 website "http://www.atutor.ca/achecker/"
   15 
   16 # Google results as at 2010-09-17 #
   17 # 6 for intitle:"AChecker : ATRC Accessibility Checker:"
   18 
   19 # Dorks #
   20 dorks [
   21 'intitle:"AChecker : ATRC Accessibility Checker:"'
   22 ]
   23 
   24 
   25 
   26 matches [
   27 
   28 # Default title
   29 { :text=>'<title>AChecker : ATRC Accessibility Checker: </title>' },
   30 
   31 ]
   32 
   33 # Version detection
   34 passive do
   35         m=[]
   36 
   37         if @body =~ /   <br \/><h1>Web Accessibility Checker<\/h1>/
   38         if @body =~ /   <\/td><td><span> Version: ([\d\.]+)<\/span><\/td>/
   39                     version=@body.scan(/    <\/td><td><span> Version: ([\d\.]+)<\/span><\/td>/)[0][0]
   40             m << {:version=>version}
   41             end
   42     end
   43 
   44         m
   45 
   46 end
   47 
   48 
   49 end
   50