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

Updates execution rule to include alternate ports. Closes #1565

This commit is contained in:
paulino
2019-05-07 20:15:22 +00:00
parent 976668b564
commit 9ec6bd1651
4 changed files with 6 additions and 3 deletions

View File

@@ -1,5 +1,8 @@
#Nmap Changelog ($Id$); -*-text-*- #Nmap Changelog ($Id$); -*-text-*-
o [NSE][GH#1565] Updates the execution rule of the mongodb scripts to be able
to run on alternate ports. [Paulino Calderon]
o [Ncat][GH#1560] Allow Ncat to connect to servers on port 0, provided that the o [Ncat][GH#1560] Allow Ncat to connect to servers on port 0, provided that the
socket implementation allows this. [Daniel Miller] socket implementation allows this. [Daniel Miller]

View File

@@ -33,7 +33,7 @@ categories = {"intrusive", "brute"}
local arg_db = stdnse.get_script_args(SCRIPT_NAME .. ".db") or "admin" local arg_db = stdnse.get_script_args(SCRIPT_NAME .. ".db") or "admin"
portrule = shortport.port_or_service({27017}, {"mongodb"}) portrule = shortport.port_or_service({27017}, {"mongodb", "mongod"})
Driver = { Driver = {

View File

@@ -47,7 +47,7 @@ categories = {"default", "discovery", "safe"}
dependencies = {"mongodb-brute"} dependencies = {"mongodb-brute"}
portrule = shortport.port_or_service({27017}, {"mongodb"}) portrule = shortport.port_or_service({27017}, {"mongodb", "mongod"})
function action(host,port) function action(host,port)

View File

@@ -65,7 +65,7 @@ dependencies = {"mongodb-brute"}
local arg_db = stdnse.get_script_args(SCRIPT_NAME .. ".db") or "admin" local arg_db = stdnse.get_script_args(SCRIPT_NAME .. ".db") or "admin"
portrule = shortport.port_or_service({27017}, {"mongodb"}) portrule = shortport.port_or_service({27017}, {"mongodb", "mongod"})
function action(host,port) function action(host,port)