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## 7# Version 0.2 # 8# Updated version detection 9## 10Plugin.define "Trac" do 11author "Brendan Coles <bcoles@gmail.com>" # 2010-06-15 12version "0.2" 13description "Trac is an enhanced wiki and issue tracking system for software development projects." 14website "http://trac.edgewall.org/" 15 16# About 77,000,000 results for "Powered by Trac" +intitle:Trac' @ 2010-06-14 17 18# Dorks # 19dorks [ 20'"Powered by Trac" intitle:Trac' 21] 22 23 24 25matches [ 26 27# GHDB Match 28{ :ghdb=>'"Powered by Trac" +intitle:Trac', :certainty=>75 }, 29 30# Version detection # Powered by text 31{ :version=>/Powered by <a[^>]*><strong>Trac ([^<]+)<\/strong><\/a><br \/>/ }, 32 33] 34 35# Fingerprint cookie 36def passive 37 m=[] 38 39 m << {:name=>"trac_form_token Cookie", :probability=>100 } if @headers["set-cookie"] =~ /trac_form_token=/ 40 41 m 42 43end 44 45end 46 47