mirror of
https://github.com/urbanadventurer/WhatWeb
synced 2026-06-21 14:12:19 +00:00
41 lines
983 B
Ruby
41 lines
983 B
Ruby
##
|
|
# 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 "Apache-Traffic-Server"
|
|
authors [
|
|
"Brendan Coles <bcoles@gmail.com>", # 2011-08-05
|
|
]
|
|
version "0.1"
|
|
description "Apache Traffic Server is a fast, scalable and extensible HTTP/1.1 compliant caching proxy server."
|
|
website "http://trafficserver.apache.org/"
|
|
|
|
# ShodanHQ results as at 2011-08-05 #
|
|
# 169 for ApacheTrafficServer
|
|
|
|
|
|
|
|
# Passive #
|
|
passive do
|
|
m=[]
|
|
|
|
# Version Detection # HTTP Server Header
|
|
if @headers["server"] =~ /^ATS\/([^\s]+)$/
|
|
m << { :version=>"#{$1}" }
|
|
end
|
|
|
|
# Version Detection # HTTP Via Header
|
|
if @headers["via"] =~ /^(http|HTTP)\/1\.1 ([^\s]+) \(ApacheTrafficServer\/([^\s]+) \[c s f \]\)$/
|
|
m << { :string =>"#{$2}" }
|
|
m << { :version=>"#{$3}" }
|
|
end
|
|
|
|
# Return passive matches
|
|
m
|
|
end
|
|
end
|
|
|