1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-06 04:31:29 +00:00

Add NSEdoc for irc.lua

This commit is contained in:
dmiller
2017-07-28 04:03:56 +00:00
parent 75a873840c
commit 95bab11f92

View File

@@ -6,6 +6,14 @@
local stdnse = require "stdnse" local stdnse = require "stdnse"
_ENV = stdnse.module("irc", stdnse.seeall) _ENV = stdnse.module("irc", stdnse.seeall)
--- Portrule for matching IRC services
--
-- @usage portrule = irc.portrule
--
-- @param host
-- @param port
-- @return Boolean true if the port is likely to be IRC
-- @class function
portrule = (require "shortport").port_or_service( portrule = (require "shortport").port_or_service(
{ {
-- Shodan.io top 3 IRC ports -- Shodan.io top 3 IRC ports