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 8# Version 0.2 9# removed :certainty=>100 10 11Plugin.define "RedirectLocation" do 12author "Andrew Horton" 13version "0.2" 14description "HTTP Server string location. used with http-status 301 and 302" 15 16def passive 17 m=[] 18 19 unless @headers.nil? 20 location=nil 21 location=@headers["location"] if @headers.keys.include?("location") 22 23 unless location.nil? 24 m << {:name=>"location",:string=>location} 25 end 26 end 27 28 m 29end 30 31end 32 33 34