"Fossies" - the Fresh Open Source Software Archive

Member "WhatWeb-0.5.5/plugins/3com-nbx.rb" (15 Jan 2021, 2335 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 "3COM-NBX"
    9 authors [
   10   "Brendan Coles <bcoles@gmail.com>", # 2011-08-09
   11 ]
   12 version "0.1"
   13 description "3COM NBX phone system. The NBX NetSet utility is a web interface in which you configure and manage the NBX system. NBX systems present the NBX NetSet utility through an embedded web server that is integrated in system software."
   14 website "http://inpath.com/products/3com-nbx.html"
   15 
   16 # More Info #
   17 # http://www.nbxnetset.com/
   18 
   19 # ShodanHQ results as at 2011-08-09 #
   20 # 827 for Virata-EmWeb Alternates
   21 # 823 for Virata-EmWeb Alternates TCN
   22 
   23 # Google results as at 2011-08-09 #
   24 # 7 for intitle:"NBX NetSet" +Version +Created
   25 
   26 # Dorks #
   27 dorks [
   28 'intitle:"NBX NetSet" "Version" "Created"'
   29 ]
   30 
   31 # Matches #
   32 matches [
   33 
   34 # Title
   35 { :text=>'<head><title>NBX NetSet</title>' },
   36 { :text=>'<HEAD><TITLE>NBX NetSet</TITLE>' },
   37 
   38 # HTML Comment
   39 { :text=>'<!-- (c) Copyright, 3Com Corporation or its subsidiaries, 2004.  All Rights Reserved. -->' },
   40 { :text=>'<!-- Gregory Brucato  4/22/98  NBX Corporation -->' },
   41 
   42 # Version Detection # META HTTP-EQUIV="sysObjectID"
   43 { :version=>/<META HTTP-EQUIV="sysObjectID" CONTENT="([\d\.]{20,30})">/ },
   44 
   45 # span class="splashTitleIPTelephony"
   46 { :text=>'<span class="splashTitleIPTelephony">&nbsp;3Com<SUP><span class="splashTitleNBXReg">&reg;</span></SUP> IP Telephony Solution</span>' },
   47 
   48 # Firmware Version Detection
   49 { :firmware=>/<td colspan="3" class="splashVersionCol" valign='bottom'>[\s]+Version:&nbsp;([^<]+)<br \/>[\s]+Created:&nbsp;/ },
   50 { :firmware=>/<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0"><TR><TD ALIGN="right" WIDTH="130" HEIGHT="75">[\s]+Version:(&nbsp;)?([^<]+)<BR>/, :offset=>1 },
   51 
   52 # Model Detection
   53 { :model=>/<span class="splashTitleNBX">NBX<SUP><span class="splashTitleNBXReg">&reg;<\/span><\/SUP><\/span>[\s]+<span class="splashTitlePlatform">(&nbsp;)?([^<]+)<\/span>/, :offset=>1 },
   54 
   55 ]
   56 
   57 # Passive #
   58 passive do
   59     m=[]
   60 
   61     # HTTP Headers
   62     if @headers["server"] =~ /^Virata-EmWeb\/R6_0_3$/ and !@headers["alternates"].nil? and !@headers["tcn"].nil?
   63         m << { :name=>"HTTP Headers" }
   64     end
   65 
   66     # Return passive matches
   67     m
   68 end
   69 end
   70