May 2017
Intermediate to advanced
416 pages
21h 33m
English
To list MongoDB databases, enter the following command:
$ nmap -p27017 --script mongodb-databases <target>
The databases will be shown in the script output section:
PORT STATE SERVICE 27017/tcp open mongodb | mongodb-databases: | ok = 1 | databases | 1 | empty = true | sizeOnDisk = 1 | name = local | 0 | empty = true | sizeOnDisk = 1 | name = admin | 3 | empty = true | sizeOnDisk = 1 | name = test | 2 | empty = true | sizeOnDisk = 1 | name = nice%20ports%2C |_ totalSize = 0
Read now
Unlock full access