Script mongodb-databases

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

Script Summary

Attempts to get a list of tables from a MongoDB database.

Script Arguments

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-databases <host>

Script Output

PORT      STATE SERVICE REASON
27017/tcp open  unknown syn-ack
| mongodb-databases:
|   ok = 1
|   databases
|     1
|       empty = false
|       sizeOnDisk = 83886080
|       name = test
|     0
|       empty = false
|       sizeOnDisk = 83886080
|       name = httpstorage
|     3
|       empty = true
|       sizeOnDisk = 1
|       name = local
|     2
|       empty = true
|       sizeOnDisk = 1
|       name = admin
|_  totalSize = 167772160

Requires


Author:

  • Martin Holst Swende

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