File: sony-projector.rb

package info (click to toggle)
whatweb 0.6.1-1
  • links: PTS
  • area: main
  • in suites: forky, sid
  • size: 23,948 kB
  • sloc: ruby: 43,493; sh: 213; makefile: 41
file content (69 lines) | stat: -rw-r--r-- 2,041 bytes parent folder | download
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
60
61
62
63
64
65
66
67
68
69
##
# 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 "Sony-Projector"
authors [
  "Brendan Coles <bcoles@gmail.com>", # 2011-08-07
]
version "0.1"
description "Sony projecter"
website "http://pro.sony.com/bbsc/ssr/cat-projectors/"

# ShodanHQ results as at 2011-08-07 #
# 91 for Network Projector
# 15 for Network Projector "Projector User"



# Matches #
matches [

# Landing Page # BODY onLoad
{ :url=>"/", :text=>'<BODY onLoad="setWindowTitle();showIndex();">' },

# Landing Page # form Action="/Forms/index_1"
{ :url=>"/", :text=>'<form Action="/Forms/index_1" method="post"  NAME="form1">' },

# Landing Page # JavaScript src="sonylogoJS.js"
{ :url=>"/", :text=>'<script type="text/javascript" src="sonylogoJS.js"></script>' },

# Frameset # /index_J.htm
{ :url=>"/index_J.htm", :text=>'<frame src="index_bg.htm" NAME="RIGHT" marginwidth="0" marginheight="0" scrolling="no" noresize>' },

# Frameset # /index_E.htm
{ :url=>"/index_E.htm", :text=>'<frame src="index_bg.htm" NAME="RIGHT" marginwidth="0" marginheight="0" scrolling="no" noresize>' },

# JavaScript sonylogo();
{ :text=>'<TR><TD COLSPAN="2"><script type="text/javascript">sonylogo();</script></TD>' },

# Model Detection # /info_data.htm # JavaScript
{ :url=>"/info_data.htm", :model=>/^var info_pj_value = \[[\s]+'([^\s^']+)','[\d]+','[^']{0,256}'\];/ },

# Version Detection # /info_data.htm # JavaScript
{ :url=>"/info_data.htm", :version=>/^var info_other_value = \[[\s]+' ?([^\s^']+)'/ },

]

# Passive #
passive do
	m=[]

	# HTTP Server
	if @headers["server"] =~ /^Network Projector$/
		m << { :certainty=>75, :name=>"Server Header" }
	end

	# WWW-Authenticate Header
	if @headers["www-authenticate"] =~ /Basic realm="Projector (User|Administration)"/
		m << { :certainty=>75, :name=>"WWW-Authenticate Header" }
	end

	# Return passive matches
	m
end
end