From 809784ed20e6fb532a953855dd7862009426b6e7 Mon Sep 17 00:00:00 2001 From: sven Date: Fri, 10 Oct 2008 10:45:21 +0000 Subject: [PATCH] use shortport library in ircServerInfo script --- scripts/ircServerInfo.nse | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/scripts/ircServerInfo.nse b/scripts/ircServerInfo.nse index 07c54c8ba..ce0402fa0 100644 --- a/scripts/ircServerInfo.nse +++ b/scripts/ircServerInfo.nse @@ -22,12 +22,7 @@ categories = {"default", "discovery"} require("stdnse") require "shortport" -portrule = function(host, port) - return (port.number == 6666 or - port.number == 6667 or - port.service == "irc" or - port.service == "irc-serv") and port.protocol == "tcp" -end +portrule = shortport.port_or_service({6666,6667},"irc") init = function() -- Start of MOTD, we'll take the server name from here