1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42
|
##
# 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.
# http://www.morningstarsecurity.com/research/whatweb
##
Plugin.define "Polycom-ViewStation" do
author "Brendan Coles <bcoles@gmail.com>" # 2011-03-11
version "0.1"
description "Polycom ViewStation - video server"
website "http://www.polycom.com/"
# ShodanHQ results as at 2011-03-11 #
# 4,489 for Viavideo-Web
# Passive #
def passive
m=[]
# HTTP Server Header
if @headers["server"] =~ /^Viavideo-Web$/
# Server: Viavideo-Web
m << { :name=>"HTTP Server Header" }
# Model Detection # /model.js
m << { :url=>"/model.js", :model=>@body.scan(/^var model="([^"]{2,10})";$/) } if @body =~ /^var model="[^"]{2,10}";$/
# Version Detection # /u_indexmain.htm
m << { :url=>"/u_indexmain.htm", :version=>@body.scan(/<td> <span class="bigtextwhite">Release ([^\-]{3,10}) - [\d]{2} [A-Z]{1}[a-z]{2,3} [\d]{4}<\/span>/) } if @body =~ /<td> <span class="bigtextwhite">Release ([^\-]{3,10}) - [\d]{2} [A-Z]{1}[a-z]{2,3} [\d]{4}<\/span>/
end
# Return passive matches
m
end
end
|