##
# 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://morningstarsecurity.com/research/whatweb
##
Plugin.define do
name "IBM-WebSphere"
authors [
  "Brendan Coles <bcoles@gmail.com>", # 2011-08-20
]
version "0.1"
description "IBM WebSphere"
website "https://www-01.ibm.com/software/websphere/"

# ShodanHQ results as at 2011-03-13 #
# 2,176 for WebSphere

# Google results as at 2013-04-11 #
# 36 for inurl:"snoop" intitle:"Snoop Servlet" "Request method"

# Dorks #
dorks [
'inurl:"snoop" intitle:"Snoop Servlet" "Request method"'
]



# Matches #
matches [

# Version Detection # HTTP Server Header
{ :search=>"headers[server]", :version=>/^WebSphere Application Server\/([^\s]+)$/ },

# Title # Snoop Servlet
{ :text=>'<HTML><HEAD><TITLE>Snoop Servlet</TITLE></HEAD><BODY BGCOLOR="#FFFFEE">', :module=>"Snoop Servlet" },

]

end

