1## 2# This file is part of WhatWeb and may be subject to 3# redistribution and commercial restrictions. Please see the WhatWeb 4# web site for more information on licensing and terms of use. 5# http://www.morningstarsecurity.com/research/whatweb 6## 7Plugin.define "Swiki" do 8author "Brendan Coles <bcoles@gmail.com>" # 2011-08-24 9version "0.1" 10description "Swiki is a popular implementation of Ward Cunningham's WikiWikiWeb that runs under Comanche." 11website "http://wiki.squeak.org/swiki/" 12 13# Google results as at 2011-08-24 # 14# 39 for "powered by Squeak" "Squeak * :: Comanche * :: Swiki" 15 16# Dorks # 17dorks [ 18'"powered by Squeak" "Squeak * :: Comanche * :: Swiki"' 19] 20 21 22 23# Matches # 24matches [ 25 26# Aggressive # /defaultScheme/comSwiki.gif 27{ :url=>"/defaultScheme/comSwiki.gif", :md5=>"81d538bed9f676fffbdaedb9d95cdbc1" }, 28 29] 30 31# Passive # 32def passive 33 m=[] 34 35 # Version Detection # Squeak / Comanche / Swiki 36 if @body =~ /<a href="http:\/\/minnow\.cc\.gatech\.edu\/swiki" title="ComSwiki: powered by Squeak"><img src="[^"^>]*\/defaultScheme\/comSwiki\.gif" border=0 width=277 height=88 alt="ComSwiki: powered by Squeak"><\/a><br>[\s]*<em>(Squeak [^\s]+) :: (Comanche [^\s]+) :: Swiki ([^\s]+)<\/em>/ 37 m << { :string=>"#{$1}" } 38 m << { :string=>"#{$2}" } 39 m << { :version=>"#{$3}" } 40 end 41 42 # Return passive matches 43 m 44end 45 46end 47 48