mirror of
https://github.com/nmap/nmap.git
synced 2026-06-09 17:22:26 +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:
parent
48f70dab55
commit
939b94a322
1 changed files with 6 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue