From 95bab11f9234e51abcce5c4cbc62e7b3fd847cee Mon Sep 17 00:00:00 2001 From: dmiller Date: Fri, 28 Jul 2017 04:03:56 +0000 Subject: [PATCH] Add NSEdoc for irc.lua --- nselib/irc.lua | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/nselib/irc.lua b/nselib/irc.lua index 11d482675..62034368a 100644 --- a/nselib/irc.lua +++ b/nselib/irc.lua @@ -6,6 +6,14 @@ local stdnse = require "stdnse" _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( { -- Shodan.io top 3 IRC ports