Script mongodb-info

Script types: portrule
Categories: default, discovery, safe
Download: https://svn.nmap.org/nmap/scripts/mongodb-info.nse

Script Summary

Attempts to get build info and server status from a MongoDB database.

Script Arguments

mongodb-info.db

Database to check. Default: admin

mongodb.db

See the documentation for the mongodb library.

creds.[service], creds.global

See the documentation for the creds library.

Example Usage

nmap -p 27017 --script mongodb-info <host>

Script Output

PORT      STATE SERVICE REASON
27017/tcp open  unknown syn-ack
| mongodb-info:
|   MongoDB Build info
|     ok = 1
|     bits = 64
|     version = 1.3.1-
|     gitVersion = d1f0ffe23bcd667f4ed18a27b5fd31a0beab5535
|     sysInfo = Linux domU-12-31-39-06-79-A1 2.6.21.7-2.ec2.v1.2.fc8xen #1 SMP Fri Nov 20 17:48:28 EST 2009 x86_64 BOOST_LIB_VERSION=1_41
|   Server status
|     opcounters
|       delete = 0
|       insert = 3
|       getmore = 0
|       update = 0
|       query = 10
|     connections
|       available = 19999
|       current = 1
|     uptime = 747
|     mem
|       resident = 9
|       virtual = 210
|       supported = true
|       mapped = 80
|     ok = 1
|     globalLock
|       ratio = 0.010762343463949
|       lockTime = 8037112
|       totalTime = 746780850
|     extra_info
|       heap_usage_bytes = 117120
|       note = fields vary by platform
|_      page_faults = 0

Requires


Author:

  • Martin Holst Swende

License: Same as Nmap--See https://nmap.org/book/man-legal.html