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
|
##
# 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 "I-O-DATA-Router" do
author "Brendan Coles <bcoles@gmail.com>" # 2011-08-05
version "0.1"
description "I-O DATA router [Japanese] - http://www.iodata.jp/product/"
# ShodanHQ results as at 2011-08-05 #
# 413 for WN-GDN Ver
# All results are from Japan
# Google results as at 2011-08-05 #
# 8 for intitle:"I-O DATA Wireless Broadband Router"
# Dorks #
dorks [
'intitle:"I-O DATA Wireless Broadband Router"'
]
# Matches #
matches [
# Model Detection # Title
{ :url=>"/", :model=>/<title>I-O DATA Wireless Broadband Router (WN-[^\s^<]+)<\/title>/ },
]
# Passive #
def passive
m=[]
# Version + Model Detection # HTTP Server Header
if @headers["server"] =~ /^Linux, HTTP\/1\.1, (WN-[^\s]+) Ver ([^\s]+)$/
m << { :model =>"#{$1}" }
m << { :version=>"#{$2}" }
end
# Return passive matches
m
end
end
|