Sha256: e56567230dda7f90f8969e1966c96e3dda7b62e5b48442d5ec70bd3e48e8f4f4

Contents?: true

Size: 980 Bytes

Versions: 6

Compression:

Stored size: 980 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
##
WhatWeb::Plugin.define "X-XSS-Protection" do
  @author = "Brendan Coles <bcoles@gmail.com>" # 2011-01-08
  @version = "0.1"
  @description = "This plugin retrieves the X-XSS-Protection value from the HTTP header. - More Info: http://msdn.microsoft.com/en-us/library/cc288472%28VS.85%29.aspx"

  # 6688 ShodanHQ results for X-XSS-Protection -mode @ 2011-01-08
  # 9633 ShodanHQ results for X-XSS-Protection mode @ 2011-01-08
  # 9633 ShodanHQ results for X-XSS-Protection mode=block @ 2011-01-08

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

    # X-XSS-Protection HTTP Header
    m << { string: target.headers["x-xss-protection"].to_s } unless target.headers["x-xss-protection"].nil?

    m
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
simple_whatweb-0.4.1 lib/whatweb/plugins/x-xss-protection.rb
simple_whatweb-0.4.0 lib/whatweb/plugins/x-xss-protection.rb
simple_whatweb-0.3.0 lib/whatweb/plugins/x-xss-protection.rb
simple_whatweb-0.2.1 lib/whatweb/plugins/x-xss-protection.rb
simple_whatweb-0.2.0 lib/whatweb/plugins/x-xss-protection.rb
simple_whatweb-0.1.0 lib/whatweb/plugins/x-xss-protection.rb