"Fossies" - the Fresh Open Source Software Archive

Member "WhatWeb-0.5.5/plugins/microsoft-iis.rb" (15 Jan 2021, 3253 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. See also the latest Fossies "Diffs" side-by-side code changes report for "microsoft-iis.rb": 0.5.4_vs_0.5.5.

A hint: This file contains one or more very long lines, so maybe it is better readable using the pure text view mode that shows the contents as wrapped lines within the browser window.


    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 "Microsoft-IIS"
    9 authors [
   10   "Andrew Horton",
   11   "Max Davitt", # v0.2 # 2021-01-07 # Added support for 8.5 "Under Construction" page
   12 ]
   13 version "0.2"
   14 description "Microsoft Internet Information Services (IIS) for Windows Server is a flexible, secure and easy-to-manage Web server for hosting anything on the Web. From media streaming to web application hosting, IIS's scalable and open architecture is ready to handle the most demanding tasks."
   15 website "http://www.iis.net/"
   16 
   17 # About 3137957 ShodanHQ results for "server: IIS" @ 2010-10-26
   18 
   19 
   20 
   21 # Matches #
   22 matches [
   23 
   24 # Site Not Found # From iis-site-not-found.rb by Andrew Horton
   25 { :text=>"<html><head><title>Site Not Found</title></head>.<body>No web site is configured at this address.</body></html>", :module=>"Site Not Found" },
   26 
   27 # Under Construction # 5.x # Error Text # From iis-underconstruction.rb by Andrew Horton
   28 { :text=>'<id id="Comment1"><!--Problem--></id><id id="errorText">Under Construction</id></h1>', :module=>"Under Construction" },
   29 
   30 # Under Construction # 6.x # Error Text # From iis-underconstruction.rb by Andrew Horton
   31 { :text=>'<P ID=Comment1><!--Problem--><P ID="errorText">Under Construction</h1>', :module=>"Under Construction" },
   32 
   33 # Under Construction # 6.x # If you are the Web site administrator text # From iis-underconstruction.rb by Andrew Horton
   34 { :text=>'If you are the Web site administrator and feel you have received this message in error, please see &quot;Enabling and Disabling Dynamic Content&quot; in IIS Help.', :module=>"Under Construction" },
   35 
   36 # Under Construction # 7.x # Welcome image link # From iis-underconstruction.rb by Andrew Horton
   37 { :text=>'<a href="http://go.microsoft.com/fwlink/?linkid=66138&amp;clcid=0x409"><img src="welcome.png" alt="IIS7" width="571" height="411" /></a>', :module=>"Under Construction" },
   38 
   39 # Under Construction # 8.5 # Welcome image link
   40 { :text=>'<a href="http://go.microsoft.com/fwlink/?linkid=66138&amp;clcid=0x409"><img src="iis-85.png" alt="IIS" width="960" height="600" /></a>', :module=>"Under Construction" },
   41   
   42 # 5.x # 404
   43 { :status=>404, :text=>'<h1 style="COLOR:000000; FONT: 13pt/15pt verdana"><!--Problem-->The page cannot be found</h1>' },
   44 
   45 # 5.x # 404 # Version Detection
   46 { :status=>404, :version=>/<a href="http:\/\/www\.microsoft\.com\/ContentRedirect\.asp\?prd=iis&sbp=&pver=([\d\.]+)&pid=&ID=404&cat=web&os=&over=&hrd=&Opt1=&Opt2=&Opt3=" target="_blank">Microsoft Support<\/a>/ },
   47 
   48 # 6.x # 404
   49 { :status=>404, :text=>'<li>Go to <a href="http://go.microsoft.com/fwlink/?linkid=8180">Microsoft Product Support Services</a> and perform a title search for the words <b>HTTP</b> and <b>404</b>.</li>' },
   50 
   51 # 6.x # 403
   52 { :status=>403, :text=>'<li>Go to <a href="http://go.microsoft.com/fwlink/?linkid=8180">Microsoft Product Support Services</a> and perform a title search for the words <b>HTTP</b> and <b>403</b>.</li>' },
   53 
   54 # Version Detection # HTTP Server Header
   55 { :search=>"headers[server]", :version=>/Microsoft-IIS\/([\d\.]+)/i },
   56 
   57 ]
   58 
   59 end
   60