Sha256: c579de506614a851179efb9e42e51c3510a3a0fc835a34bdc1fd7b8a398c7c38

Contents?: true

Size: 1.43 KB

Versions: 6

Compression:

Stored size: 1.43 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
##
WhatWeb::Plugin.define "Mashery-Proxy" do
  @author = "Brendan Coles <bcoles@gmail.com>" # 2011-03-14
  @version = "0.1"
  @description = "The Mashery proxy is our patent pending software that sits between your developers and your API. The proxy intercepts all calls to your API, does some Mashery magic, passes the call on to your API, intercepts the response, does some more Mashery magic and sends the response back to the caller. The proxy is the mechanism for applying the business rules of your choosing to your new API channel."
  @website = "http://support.mashery.com/SolutionOverview"

  # ShodanHQ results as at 2011-03-14 #
  # 92 for Mashery Proxy
  # 78 for X-Mashery-Error-Code

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

    # HTTP Server Header
    m << { name: "HTTP Server Header" } if target.headers["server"] =~ /^Mashery Proxy$/

    # X-Mashery-Responder
    m << { string: target.headers["x-mashery-responder"].to_s } unless target.headers["x-mashery-responder"].nil?

    # X-Mashery-Error-Code
    m << { string: target.headers["x-mashery-error-code"].to_s } unless target.headers["x-mashery-error-code"].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/mashery-proxy.rb
simple_whatweb-0.4.0 lib/whatweb/plugins/mashery-proxy.rb
simple_whatweb-0.3.0 lib/whatweb/plugins/mashery-proxy.rb
simple_whatweb-0.2.1 lib/whatweb/plugins/mashery-proxy.rb
simple_whatweb-0.2.0 lib/whatweb/plugins/mashery-proxy.rb
simple_whatweb-0.1.0 lib/whatweb/plugins/mashery-proxy.rb