"Fossies" - the Fresh Open Source Software Archive

Member "WhatWeb-0.5.5/plugins/adtran-device.rb" (15 Jan 2021, 1784 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.

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 "ADTRAN-Device"
    9 authors [
   10   "Brendan Coles <bcoles@gmail.com>", # 2011-05-31
   11   "Andrew Horton", # v0.2 # 2016-04-23 # Moved patterns from passive function to matches[]. 
   12 ]
   13 version "0.2"
   14 description "ADTRAN device - Total Access and NetVanta Network Management - Includes: Fast Ethernet switches, Gigabit Ethernet switches, Power over Ethernet Switches, Integrated switch-routers, Fixed port Routers, Modular Routers, Multiservice Access Routers, Internet security/firewall appliance, IP Business Gateways, IP Communication Platforms, IP Phones, Integrated Access Devices, 802.11a/b/g Wireless Access Points, Network Management"
   15 website "http://www.adtran.com/web/page/portal/Adtran/group/3310"
   16 
   17 # More Info #
   18 # NetVanta: http://www.adtran.com/web/page/portal/Adtran/group/1
   19 # Total Access: http://www.adtran.com/web/page/portal/Adtran/group/29
   20 
   21 # ShodanHQ results as at 2011-05-31 #
   22 # 31,198 for Total Access http -sip
   23 # 28,870 for Total Access http -sip Gen
   24 #  2,328 for Total Access http -sip -Gen
   25 #     86 for netvanta http -sip
   26 
   27 matches [
   28 
   29     # HTTP Server Header
   30     { :regexp=>/^ADTRAN/, :search=>"headers[server]", :name=>"HTTP Server Header" },
   31 
   32     # NetVanta Series # Model Detection # WWW-Authenticate Header
   33     { :string=>"NetVanta", :model=>/^Basic realm="Net[Vv]anta ([^"]+)"$/, :search=>"headers[www-authenticate]" },
   34 
   35     # Total Access Series # Model Detection # WWW-Authenticate Header
   36     { :string=>"Total Access", :model=>/^Basic realm="Total Access ([^"]+)"$/, :search=>"headers[www-authenticate]" },
   37 
   38 ]
   39 
   40 end
   41