1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38
|
##
# 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
##
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
|