File: liferay.rb

package info (click to toggle)
whatweb 0.4.8~git20161009-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 8,588 kB
  • ctags: 540
  • sloc: ruby: 33,376; sh: 612; makefile: 42
file content (55 lines) | stat: -rw-r--r-- 1,597 bytes parent folder | download | duplicates (2)
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
##
# 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
##
# Version 0.3 #
# Update version detection and added cookie and javascript matches
##
# Version 0.2 #
# Update version detection and ghdb match
##
Plugin.define "Liferay" do
author "Brendan Coles <bcoles@gmail.com>" # 2010-06-13
version "0.3"
description "Liferay Portal is an enterprise web platform for building business solutions that deliver immediate results and long-term value."
website "http://www.liferay.com/"

# ShodanHQ results as at 2012-04-23 #
# 707 for COOKIE_SUPPORT GUEST_LANGUAGE_ID
# 650 for liferay-portal

# Google results as at 2012-04-23 #
# 208 for "Powered by Liferay Portal"
#  90 for "Powered by Liferay Portal" -site:liferay.com

# Dorks #
dorks [
'"Powered by Liferay Portal"'
]



# Matches #
matches [

# Powered by text
{ :text=>"Powered by Liferay Portal", :certainty=>10 },

# JavaScript # Liferay.Util.addInputFocus()
{ :text=>"<![CDATA[*/Liferay.Util.addInputFocus();/*]]>*" },

# HTTP Header # Liferay-Portal # Edition Detection
{ :search=>"headers[liferay-portal]", :string=>/^Liferay Portal (.+ Edition) (.+)$/ },

# HTTP Header # Liferay-Portal # Version Detection
{ :search=>"headers[liferay-portal]", :version=>/^Liferay Portal (.+ Edition) (.+)$/, :offset=>1 },

# HTTP Header # Set-Cookie # GUEST_LANGUAGE_ID
{ :search=>"headers[set-cookie]", :regexp=>/GUEST_LANGUAGE_ID=[a-z]{2,3}_[A-Z]{2,3};/ },

]

end