Sha256: ecf1be1eff0123f3aec7080a4f55a06b7c2ee0a95d2dd715aaaa204780d6e130

Contents?: true

Size: 1.05 KB

Versions: 6

Compression:

Stored size: 1.05 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 "Ushahidi" do
  @author = "Brendan Coles <bcoles@gmail.com>" # 2011-06-05
  @version = "0.1"
  @description = "The Ushahidi Platform is a platform for information collection, visualization and interactive mapping."
  @website = "http://www.ushahidi.com/"

  # ShodanHQ results as at 2011-06-05 #
  # 22 for ushahidi_data

  # Matches #
  @matches = [

    # /favicon.ico
    { md5: "7350c3f75cb80e857efa88c2fd136da5", url: "/favicon.ico" },

  ]

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

    # ushahidi cookie
    m << { name: "ushahidi cookie" } if target.headers["set-cookie"] =~ /ushahidi=[^;]+;/

    # ushahidi_data cookie
    m << { name: "ushahidi_data cookie" } if target.headers["set-cookie"] =~ /ushahidi_data=[^;]+;/

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