Sha256: 0ad96ea0e5c1efb3b8e99a04312001ef7b59954494c41b57124d54233b1f0019

Contents?: true

Size: 1.07 KB

Versions: 6

Compression:

Stored size: 1.07 KB

Contents

# frozen_string_literal: true

##
# 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.
# http://www.morningstarsecurity.com/research/whatweb
##
WhatWeb::Plugin.define "Apache-Traffic-Server" do
  @author = "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 #
  def passive(target)
    m = []

    # Version Detection # HTTP Server Header
    if target.headers["server"] =~ /^ATS\/([^\s]+)$/
      m << { version: $1.to_s }
    end

    # Version Detection # HTTP Via Header
    if target.headers["via"] =~ /^(http|HTTP)\/1\.1 ([^\s]+) \(ApacheTrafficServer\/([^\s]+) \[c s f \]\)$/
      m << { string: $2.to_s }
      m << { version: $3.to_s }
    end

    # Return passive matches
    m
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
simple_whatweb-0.4.1 lib/whatweb/plugins/apache-traffic-server.rb
simple_whatweb-0.4.0 lib/whatweb/plugins/apache-traffic-server.rb
simple_whatweb-0.3.0 lib/whatweb/plugins/apache-traffic-server.rb
simple_whatweb-0.2.1 lib/whatweb/plugins/apache-traffic-server.rb
simple_whatweb-0.2.0 lib/whatweb/plugins/apache-traffic-server.rb
simple_whatweb-0.1.0 lib/whatweb/plugins/apache-traffic-server.rb