Sha256: 443f27c1ec60cb34492867b073be1354c2e8321ceaa4be4a6ca20c33b62702b6

Contents?: true

Size: 1.68 KB

Versions: 6

Compression:

Stored size: 1.68 KB

Contents

# frozen_string_literal: true

##
# 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
##
WhatWeb::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

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
simple_whatweb-0.4.1 lib/whatweb/plugins/liferay.rb
simple_whatweb-0.4.0 lib/whatweb/plugins/liferay.rb
simple_whatweb-0.3.0 lib/whatweb/plugins/liferay.rb
simple_whatweb-0.2.1 lib/whatweb/plugins/liferay.rb
simple_whatweb-0.2.0 lib/whatweb/plugins/liferay.rb
simple_whatweb-0.1.0 lib/whatweb/plugins/liferay.rb