mirror of
https://github.com/urbanadventurer/WhatWeb
synced 2026-06-21 14:12:19 +00:00
71 lines
2.3 KiB
Ruby
71 lines
2.3 KiB
Ruby
##
|
|
# This file is part of WhatWeb and may be subject to
|
|
# redistribution and commercial restrictions. Please see the WhatWeb
|
|
# web site for more information on licensing and terms of use.
|
|
# https://morningstarsecurity.com/research/whatweb
|
|
##
|
|
Plugin.define do
|
|
name "3COM-NBX"
|
|
authors [
|
|
"Brendan Coles <bcoles@gmail.com>", # 2011-08-09
|
|
]
|
|
version "0.1"
|
|
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."
|
|
website "http://inpath.com/products/3com-nbx.html"
|
|
|
|
# More Info #
|
|
# http://www.nbxnetset.com/
|
|
|
|
# ShodanHQ results as at 2011-08-09 #
|
|
# 827 for Virata-EmWeb Alternates
|
|
# 823 for Virata-EmWeb Alternates TCN
|
|
|
|
# Google results as at 2011-08-09 #
|
|
# 7 for intitle:"NBX NetSet" +Version +Created
|
|
|
|
# Dorks #
|
|
dorks [
|
|
'intitle:"NBX NetSet" "Version" "Created"'
|
|
]
|
|
|
|
# Matches #
|
|
matches [
|
|
|
|
# Title
|
|
{ :text=>'<head><title>NBX NetSet</title>' },
|
|
{ :text=>'<HEAD><TITLE>NBX NetSet</TITLE>' },
|
|
|
|
# HTML Comment
|
|
{ :text=>'<!-- (c) Copyright, 3Com Corporation or its subsidiaries, 2004. All Rights Reserved. -->' },
|
|
{ :text=>'<!-- Gregory Brucato 4/22/98 NBX Corporation -->' },
|
|
|
|
# Version Detection # META HTTP-EQUIV="sysObjectID"
|
|
{ :version=>/<META HTTP-EQUIV="sysObjectID" CONTENT="([\d\.]{20,30})">/ },
|
|
|
|
# span class="splashTitleIPTelephony"
|
|
{ :text=>'<span class="splashTitleIPTelephony"> 3Com<SUP><span class="splashTitleNBXReg">®</span></SUP> IP Telephony Solution</span>' },
|
|
|
|
# Firmware Version Detection
|
|
{ :firmware=>/<td colspan="3" class="splashVersionCol" valign='bottom'>[\s]+Version: ([^<]+)<br \/>[\s]+Created: / },
|
|
{ :firmware=>/<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0"><TR><TD ALIGN="right" WIDTH="130" HEIGHT="75">[\s]+Version:( )?([^<]+)<BR>/, :offset=>1 },
|
|
|
|
# Model Detection
|
|
{ :model=>/<span class="splashTitleNBX">NBX<SUP><span class="splashTitleNBXReg">®<\/span><\/SUP><\/span>[\s]+<span class="splashTitlePlatform">( )?([^<]+)<\/span>/, :offset=>1 },
|
|
|
|
]
|
|
|
|
# Passive #
|
|
passive do
|
|
m=[]
|
|
|
|
# HTTP Headers
|
|
if @headers["server"] =~ /^Virata-EmWeb\/R6_0_3$/ and !@headers["alternates"].nil? and !@headers["tcn"].nil?
|
|
m << { :name=>"HTTP Headers" }
|
|
end
|
|
|
|
# Return passive matches
|
|
m
|
|
end
|
|
end
|
|
|