1
0
mirror of https://github.com/nmap/nmap.git synced 2026-01-08 23:49:03 +00:00

Updated the IRC server info script to handle services

named irc-serv as well as just irc because this name
is present in nmap-services.
This commit is contained in:
doug
2007-12-15 23:47:31 +00:00
parent 48f70dab55
commit 939b94a322

View File

@@ -11,7 +11,12 @@ categories = {"discovery"}
require("stdnse")
require "shortport"
portrule = shortport.port_or_service(6667, "irc")
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
init = function()
-- Start of MOTD, we'll take the server name from here