Sha256: e127fe309c468bf812598045abfbd1f0040169e514e6025538fc7a68e8073c8b

Contents?: true

Size: 705 Bytes

Versions: 6

Compression:

Stored size: 705 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 "Proxy-Agent" do
  @author = "Brendan Coles <bcoles@gmail.com>" # 2010-10-30
  @version = "0.1"
  @description = "This plugin retrieves the proxy agent from the HTTP header."

  # About 1444 ShodanHQ results for "proxy-agent:" @ 2010-10-30

  # HTTP Header
  def passive(target)
    m = []

    m << { string: target.headers["proxy-agent"].to_s } unless target.headers["proxy-agent"].nil?

    m
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
simple_whatweb-0.4.1 lib/whatweb/plugins/proxy-agent.rb
simple_whatweb-0.4.0 lib/whatweb/plugins/proxy-agent.rb
simple_whatweb-0.3.0 lib/whatweb/plugins/proxy-agent.rb
simple_whatweb-0.2.1 lib/whatweb/plugins/proxy-agent.rb
simple_whatweb-0.2.0 lib/whatweb/plugins/proxy-agent.rb
simple_whatweb-0.1.0 lib/whatweb/plugins/proxy-agent.rb