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 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59
|
##
# 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 "Toshiba-Cable-Modem" do
author "Brendan Coles <bcoles@gmail.com>" # 2011-03-07
version "0.1"
description "Toshiba Cable Modem"
website "http://www.toshiba.com/"
# ShodanHQ results as at 2011-03-07 #
# 5,583 for Document follows PCX3000
# 5,583 for Document follows PCX
# All results are from Japan
# Matches #
matches [
# Default Title
{ :text=>"<TITLE>Toshiba Cable Modem PCX3000</TITLE>", :certainty=>75 },
# Default logo
{ :url=>"/pcx3k.gif", :md5=>"b70118d64dc5a404f82467bbf3858524", :model=>"PCX3000" },
# Page Heading # /up.html
{ :url=>"/up.html", :text=>"<BR><FONT color=navy size=5>Toshiba Cable Modem Diagnostics Page </FONT>" },
# CMTS MAC Detection # /up.html
{ :url=>"/up.html", :string=>/<STRONG>CMTS MAC Address:<FONT color="#980040">([^<]+)<\/FONT><\/STRONG>/ },
# Model Detection # /up.html
{ :url=>"/up.html", :model=>/<STRONG> MODEL[\r\n]*<FONT COLOR="#980040">([^\s^<]+)<\/FONT>/ },
# Firmware Version Detection # /up.html
{ :url=>"/up.html", :firmware=>/; HW_REV[\r\n]*<FONT COLOR="#980040">([^\s^<]+)<\/FONT>/ },
# Software Version Detection # /up.html
{ :url=>"/up.html", :version=>/; SW_REV[\r\n]*<FONT COLOR="#980040">([^\s^<]+)<\/FONT>/ },
]
# Passive #
def passive
m=[]
# Server: PCX3000/1.0
m << { :model=>"PCX3000" } if @headers["server"] =~ /^PCX3000\/[\d\.]{1,5}/
# Return passive matches
m
end
end
|