Nmap Development mailing list archives
Re: shortport function
From: "Eddie Bell" <ejlbell () gmail com>
Date: Thu, 12 Jul 2007 11:45:33 +0100
You could do something like this: portrule = function() return shortport.portnumber(69, 'udp', 'open') or shortport.portnumber(69, 'udp', 'open|filtered') end On 12/07/07, Ferdy Riphagen <f.riphagen () nsec nl> wrote:
Hi all, I have a problem with the parsing of the shortport.* function It doesn't pare code like this right I'll think. portrule = shortport.portnumber(69, "udp", {"open", "open|filtered"} I can use a table for the port, but not for the state and service. Can someone verify this? Possible there must be a check for _state is "string", " table" or "nil" --Ferdy--
_______________________________________________ Sent through the nmap-dev mailing list http://cgi.insecure.org/mailman/listinfo/nmap-dev Archived at http://SecLists.Org
Current thread:
- shortport function Ferdy Riphagen (Jul 12)
- Re: shortport function Eddie Bell (Jul 12)
- Re: shortport function Diman Todorov (Jul 12)
- <Possible follow-ups>
- Fwd: shortport function Diman Todorov (Jul 12)
- Re: Fwd: shortport function Ferdy Riphagen (Jul 12)
- Re: shortport function Eddie Bell (Jul 12)