Sha256: 917f139a8f18424f72917fb5f20d2b56f3f94e74dcdbf00f5b7588c2e0e16a96

Contents?: true

Size: 1.23 KB

Versions: 6

Compression:

Stored size: 1.23 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
##
# Version 0.2 # 2011-01-23 #
# Updated regex
##
WhatWeb::Plugin.define "ChinaCache" do
  @author = "Brendan Coles <bcoles@gmail.com>" # 2010-10-30
  @version = "0.2"
  @description = "ChinaCache is a leading content distribution network (CDN) service provider in China. This header, vehicolated through squid, not only tells the world where the content is coming from, it also brings some (obscure) info with it. What is sure is that there is no open standard on how to use this server header field. Probably it is there only for debugging purposes by the employees of ChinaCache."
  @website = "http://www.chinacache.com/"

  # ShodanHQ results as at 2010-10-30 #
  # About 958 results for "Powered-By-ChinaCache"

  # Passive #
  def passive(target)
    m = []

    # powered-by-chinacache HTTP Header
    unless target.headers["powered-by-chinacache"].nil?
      m << { string: target.headers["powered-by-chinacache"].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/chinacache.rb
simple_whatweb-0.4.0 lib/whatweb/plugins/chinacache.rb
simple_whatweb-0.3.0 lib/whatweb/plugins/chinacache.rb
simple_whatweb-0.2.1 lib/whatweb/plugins/chinacache.rb
simple_whatweb-0.2.0 lib/whatweb/plugins/chinacache.rb
simple_whatweb-0.1.0 lib/whatweb/plugins/chinacache.rb