Library mongodb

Library methods for handling MongoDB, creating and parsing packets.

Author:

  • Martin Holst Swende

Copyright © Same as Nmap--See https://nmap.org/book/man-legal.html Version 0.1

Source: https://svn.nmap.org/nmap/nselib/mongodb.lua

Script Arguments

mongodb.db

- the database to use for authentication

Functions

queryResultToTable (resultTable)

Converts a query result as received from MongoDB query into nmap "result" table

testBson ()

Test-code for debugging purposes below

Functions

queryResultToTable (resultTable)

Converts a query result as received from MongoDB query into nmap "result" table

Parameters

resultTable
table as returned from a query

Return value:

table suitable for stdnse.format_output
testBson ()

Test-code for debugging purposes below