Sha256: 35abbd86f979bb83f35d9684009149123ba2bb9877c1ea8b61eda9e43288040e

Contents?: true

Size: 1.99 KB

Versions: 6

Compression:

Stored size: 1.99 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
##
WhatWeb::Plugin.define "Sun-Cobalt" do
  @author = "Brendan Coles <bcoles@gmail.com>" # 2011-03-25
  @version = "0.1"
  @description = "The Cobalt Qube was a computer server appliance product line developed by Cobalt Networks. The Cobalt RaQ is a 1U rackmount server product line developed by Cobalt Networks, Inc. - More Info: http://en.wikipedia.org/wiki/Cobalt_RaQ  &  http://en.wikipedia.org/wiki/Cobalt_Qube"

  # Google results as at 2011-03-25 #
  # 518 for "Welcome to the Web Site of" "Use your favorite FTP application to move your website to the web server."
  # 399 for intitle:"Login - Sun Cobalt RaQ 550"
  #  59 for intitle:"Login - Sun Cobalt Qube"

  # Matches #
  @matches = [

    # Model Detection # Title
    { model: /<TITLE>Login - Sun Cobalt (Qube [\d]+|RaQ [\d]+) - [^<^\s]+[\n]?<\/TITLE>/ },

    # Model Detection # JavaScript
    { model: /document.write\("\\nThank you for using the Sun Cobalt (Qube [\d]+|RaQ [\d]+)\.\\n"\);/ },

    # Meta Copyright # 404 Error
    # Shared by BlueOnyx and BlueQuartz and Sun Cobalt servers
    { certainty: 25, text: '<META NAME="Copyright" VALUE="Copyright (C) 2000, Cobalt Networks, Inc.  All rights reserved.">' },

    # Redirect Page # Shared by BlueOnyx and BlueQuartz and Sun Cobalt servers
    { certainty: 25, text: 'var url = "/login.php?expired=true&target="+escape(pathname+top.location.search+top.location.hash);' },

    # Welcome to text # Shared by BlueOnyx and BlueQuartz and Sun Cobalt servers
    { certainty: 25, regexp: /<P ALIGN="CENTER"><FONT SIZE="5" COLOR="#000099" FACE="HELVETICA, ARIAL"><B>Welcome to the Web Site of [^\s^<]+<\/B><\/FONT>/ },

    # web root redirector
    { certainty: 75, text: "<HTML><BODY onLoad=\"location='/login.php'\"></BODY></HTML>" },

  ]
end

Version data entries

6 entries across 6 versions & 1 rubygems

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