"Fossies" - the Fresh Open Source Software Archive

Member "WhatWeb-0.5.5/plugins/acme.serve.rb" (15 Jan 2021, 1196 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 "Acme_Serve"
    9 authors [
   10   "Brendan Coles <bcoles@gmail.com>", # 2011-06-01
   11   "Andrew Horton", # v0.2 # 2016-04-18 # Replaced passive function with match. 
   12 ]
   13 version "0.2"
   14 description "Minimal Java HTTP server class. This class implements a very small embeddable HTTP server. It runs Servlets compatible with the API used by JavaSoft's JavaServer server. Used as an embedded server for many devices."
   15 website "http://www.acme.com/java/software/Acme.Serve.Serve.html"
   16 
   17 # ShodanHQ results as at 2011-06-01 #
   18 # 600 for Acme.Serve
   19 # 592 for Acme.Serve -TJWS
   20 #  95 for Acme.Serve -JWS
   21 #  87 for Acme.Serve -JWS -TJWS
   22 #  87 for Acme.Serve -Rogatkin
   23 
   24 matches [
   25     # Version Detection
   26     { :search=>"headers[server]", :version=>/^Acme\.Serve\/v([\d\.]+) of [\d]{2}[a-z]{3}[\d]{2}$/ },
   27     # Date Detection
   28     { :name=>"Date from server header", :search=>"headers[server]", :string=>/^Acme\.Serve\/v[\d\.]+ of ([\d]{2}[a-z]{3}[\d]{2})$/ },
   29 ]
   30 
   31 end
   32