Sha256: fd1108bcb5d2c8c9309db29d577c7d73d3423d5ca40c15d6fadcdc64afe2d9d1

Contents?: true

Size: 808 Bytes

Versions: 3

Compression:

Stored size: 808 Bytes

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.3 # 2011-04-02 #
# Updated regex
##
# Version 0.2
# removed :certainty=>100
##
WhatWeb::Plugin.define "X-Powered-By" do
  @author = "Andrew Horton"
  @version = "0.3"
  @description = "X-Powered-By HTTP header"

  # ShodanHQ results as at 2011-04-02 #
  # 7,122,968 for x-powered-by

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

    # X-Powered-By Headers
    m << { name: "x-powered-by string", string: target.headers["x-powered-by"] } if target.headers["x-powered-by"]

    # Return passive matches
    m
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
simple_whatweb-0.4.1 lib/whatweb/plugins/x-powered-by-header.rb
simple_whatweb-0.4.0 lib/whatweb/plugins/x-powered-by-header.rb
simple_whatweb-0.3.0 lib/whatweb/plugins/x-powered-by-header.rb