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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user