1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-06 04:31:29 +00:00

o [NSE] Applied patch to add additional version information to Mongodb scripts

[Martin Swende]
This commit is contained in:
patrik
2011-12-20 18:54:03 +00:00
parent 1350b11331
commit 5d0db9c7fc
3 changed files with 17 additions and 1 deletions

View File

@@ -65,6 +65,10 @@ function action(host,port)
status, result = mongodb.query(socket, packet)
if not status then return result end-- Error message
port.version.name ='mongodb'
port.version.product='MongoDB'
nmap.set_port_version(host,port,'hardmatched')
local output = mongodb.queryResultToTable(result)
if err ~= nil then
stdnse.log_error(err)