Sha256: c27bae6eebb28b607a7be1d1dade5d41ffe1ee69cb5f337bb7518b97f96ec447

Contents?: true

Size: 752 Bytes

Versions: 6

Compression:

Stored size: 752 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-hacker" do
  @author = "Brendan Coles <bcoles@gmail.com>" # 2011-04-08
  @version = "0.1"
  @description = "This plugin identifies the X-Hacker HTTP header and returns its value."

  # ShodanHQ results as at 2011-04-08 #
  # 23 for x-hacker

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

    # X-Hacker HTTP Header
    m << { string: target.headers["x-hacker"] } unless target.headers["x-hacker"].nil?

    # 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/x-hacker.rb
simple_whatweb-0.4.0 lib/whatweb/plugins/x-hacker.rb
simple_whatweb-0.3.0 lib/whatweb/plugins/x-hacker.rb
simple_whatweb-0.2.1 lib/whatweb/plugins/x-hacker.rb
simple_whatweb-0.2.0 lib/whatweb/plugins/x-hacker.rb
simple_whatweb-0.1.0 lib/whatweb/plugins/x-hacker.rb