File: Phusion_Passenger.rb

package info (click to toggle)
whatweb 0.4.8~git20120606-1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 7,956 kB
  • sloc: ruby: 53,738; sh: 577; makefile: 34
file content (54 lines) | stat: -rw-r--r-- 1,498 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
##
# 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 "Phusion_Passenger" do
author "Brendan Coles <bcoles@gmail.com>" # 2011-03-10
version "0.1"
description 'Phusion Passenger - a.k.a. mod_rails or mod_rack - makes deployment of Ruby web applications, such as those built on the revolutionary Ruby on Rails web framework, a breeze. It follows the usual Ruby on Rails conventions, such as "Dont-Repeat-Yourself" - Homepage: http://www.modrails.com/'

# ShodanHQ results as at 2011-03-10 #
# 83,668 for Phusion_Passenger

# Examples #
examples %w|
163.221.193.121
174.121.44.173
109.164.245.221
184.73.236.167
217.10.138.175
67.23.3.162
208.79.232.252
174.133.0.51
50.22.30.199
174.132.4.222
125.172.139.205
75.125.136.102
174.120.169.37
74.54.175.138
46.17.2.102
222.230.54.123
86.186.87.70
74.53.62.103
94.102.152.146
|

# Passive #
def passive
	m=[]

	# Server
	m << { :version=>@headers["server"].scan(/[\s]+Phusion_Passenger\/([\d\.]+)/) } if @headers["server"] =~ /[\s]+Phusion_Passenger\/([\d\.]+)/

	# X-Powered-By: Phusion Passenger (mod_rails/mod_rack)
	m << { :version=>@headers["x-powered-by"].scan(/Phusion Passenger \(mod_rails\/mod_rack\) ([\d\.]+)/) } if @headers["x-powered-by"] =~ /Phusion Passenger \(mod_rails\/mod_rack\) ([\d\.]+)/

	# Return passive matches
	m
end

end