Sha256: 6cd3cf4be6aaa3a3d6ffd50f2bb3fa85ff0babece4bb8d9b8dbf34c54f3dd3fe

Contents?: true

Size: 1.11 KB

Versions: 6

Compression:

Stored size: 1.11 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 "MongoDB" do
  @author = "Steve 'Ashcrow' Milner"
  @version = "0.1"
  @description = "Identifies the admnistration console of MondoDB. http://www.mongodb.org/"

  ##
  # Would be a good idea to find common items in stacktraces which identify
  # the use of mongodb to expand this beyond just administration console.
  ##

  @matches = [

    { name: "Title",
      certainty: 75,
      regexp: /<title>mongod [^<]+<\/title>/ },

    { name: "Commands",
      certainty: 75,
      text: '<a href="/buildInfo?text=1" title="get version #, etc.
    { buildinfo:1 }">buildInfo</a> <a href="/cursorInfo?text=1" title=" example: { cursorInfo : 1 }">cursorInfo</a>' },

    { name: "Info",
      certainty: 100,
      regexp: /<pre>db version v[\d\.]+, pdfile version [\d\.]+\ngit hash:/,
      version: /<pre>db version v([\d\.]+){1}/ },
  ]
end

Version data entries

6 entries across 6 versions & 1 rubygems

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