From 8c89c0f4d90cc5263a03bedd6354e90730e0ff97 Mon Sep 17 00:00:00 2001 From: diman Date: Sat, 8 Dec 2007 19:25:09 +0000 Subject: [PATCH] default port state for shortports is now open or open|filtered instead of only open --- nselib/shortport.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/nselib/shortport.lua b/nselib/shortport.lua index 87b311c00..b6ec50825 100644 --- a/nselib/shortport.lua +++ b/nselib/shortport.lua @@ -4,7 +4,7 @@ module(..., package.seeall) portnumber = function(port, _proto, _state) local port_table, state_table local proto = _proto or "tcp" - local state = _state or {"open"} + local state = _state or {"open", "open|filtered"} if(type(port) == "number") then port_table = {port} @@ -35,7 +35,7 @@ end service = function(service, _proto, _state) local service_table; - local state = _state or "open" + local state = _state or {"open", "open|filtered"} local proto = _proto or "tcp" if(type(service) == "string") then @@ -66,7 +66,7 @@ service = function(service, _proto, _state) end port_or_service = function(port, _service, proto, _state) - local state = _state or {"open"} + local state = _state or {"open", "open|filtered"} local state_table if(type(state) == "string") then