mirror of
https://github.com/nmap/nmap.git
synced 2026-08-03 22:29:06 +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:
parent
0b20e734b4
commit
c0acb48951
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue