##
# 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://www.morningstarsecurity.com/research/whatweb
##
Plugin.define do
name "Novell-Open-Enterprise-Server"
authors [
  "Brendan Coles <bcoles@gmail.com>", # 2012-07-16
]
version "0.1"
description "Novell Open Enterprise Server"
website "http://www.novell.com/products/openenterpriseserver/"

# Google results as at 2012-07-16 #
# 330 for intitle:"Home - Novell Open Enterprise Server 2" "Novell Open Enterprise Server provides secure, reliable and highly available workgroup services in an open environment"

# Dorks #
dorks [
'intitle:"Home - Novell Open Enterprise Server 2" "Novell Open Enterprise Server provides secure, reliable and highly available workgroup services in an open environment"'
]



# Matches #
matches [

# / # Redirect Page
{ :text=>'<!-- This is all just a super-duper redirect to the Welcome page' },

# /welcome/index.html # Title
{ :text=>'<title>Home - Novell Open Enterprise Server 2</title>' },

# /welcome/index.html # Year Detection
{ :string=>/<p id="ftr-copy">&nbsp;&nbsp;&nbsp;&nbsp;&copy; (20[\d]{2}) Novell, Inc\. All Rights Reserved\.<\/p>/ },

# /welcome/index.html # JavaScript
{ :text=>'<script type="text/javascript" src="/welcome/inc/flashobj.js"></script> <!-- required for javascript banners from Novell.com -->' },

# /welcome/index.html # H1 Heading # Version Detection
{ :version=>/<h1>Novell Open Enterprise Server ([^<]+)<\/h1>\s+<p class="link"><a href="http:\/\/www\.novell\.com\/products\/openenterpriseserver\/">/ },

]

end

