mirror of
https://github.com/nmap/nmap.git
synced 2025-12-09 22:21:29 +00:00
In ms-sql-info, change the hostrule conditions
state ~= "closed" into state == "open" or state == "open|filtered" (state ~= "closed") matches "filtered", so the script was running against hosts that had all the relevant ports filtered.
This commit is contained in:
@@ -121,8 +121,8 @@ hostrule = function(host)
|
||||
local smbPortNumber = smb.get_port( host )
|
||||
|
||||
if ( (stdnse.get_script_args( {"mssql.instance-all", "mssql.instance-name", "mssql.instance-port"} ) ~= nil) or
|
||||
(sqlBrowserPort and sqlBrowserPort.state ~= "closed") or
|
||||
(sqlDefaultPort and sqlDefaultPort.state ~= "closed") or
|
||||
(sqlBrowserPort and (sqlBrowserPort.state == "open" or sqlBrowserPort.state == "open|filtered")) or
|
||||
(sqlDefaultPort and (sqlDefaultPort.state == "open" or sqlDefaultPort.state == "open|filtered")) or
|
||||
(smbPortNumber ~= nil) ) then
|
||||
return true
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user