mirror of
https://github.com/nmap/nmap.git
synced 2026-08-04 06:40:48 +00:00
use shortport library in ircServerInfo script
This commit is contained in:
parent
375f34f0ca
commit
809784ed20
1 changed files with 1 additions and 6 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue