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 "Python" do 8author "Brendan Coles <bcoles@gmail.com>" # 2010-10-26 9version "0.1" 10description "Python is a programming language that lets you work more quickly and integrate your systems more effectively. You can learn to use Python and see almost immediate gains in productivity and lower maintenance costs." 11website "http://www.python.org/" 12 13# About 170076 ShodanHQ results for "server: python" @ 2010-10-26 14 15 16# HTTP Header 17def passive 18 m=[] 19 20 # Server # Version Detection 21 m << { :version=>@headers["server"].to_s.scan(/[^\r^\n]* Python\/([^\s^\r^\n]+)/).flatten } if @headers["server"].to_s =~ /[^\r^\n]* Python\/([^\s^\r^\n]+)/ 22 23 m 24 25end 26 27end 28 29