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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user