Nmap irc-info NSE Script


This page contains detailed information about how to use the irc-info NSE script. For list of all NSE scripts, visit the Nmap NSE Library.

Select:
Overview
Error Messages

Script Overview


Script source code: https://github.com/nmap/nmap/tree/master/scripts/irc-info.nse
Script categories: default, discovery, safe
Target service / protocol: irc
Target network port(s): 6664, 6665, 6666, 6667, 6668, 6669, 6679, 6697, 7000, 8067
List of CVEs: -

Script Description


The irc-info.nse script gathers information from an IRC server.

It uses STATS, LUSERS, and other queries to obtain this information.

Irc-info NSE Script Arguments


The irc-info.nse script does not have any arguments.

Irc-info NSE Script Example Usage


Here's an example of how to use the irc-info.nse script:

nmap --script=irc-info <target>

Irc-info NSE Script Example Output


Here's a sample output from the irc-info.nse script:

6665/tcp open     irc
| irc-info:
|   server: asimov.freenode.net
|   version: ircd-seven-1.1.3(20111112-b71671d1e846,charybdis-3.4-dev). asimov.freenode.net
|   servers: 31
|   ops: 36
|   chans: 48636
|   users: 84883
|   lservers: 1
|   lusers: 4350
|   uptime: 511 days, 23:02:29
|   source host: source.example.com
|_  source ident: NONE or BLOCKED

Irc-info NSE Script Example XML Output


Here's a sample XML output from the irc-info.nse script produced by providing the -oX <file> Nmap option:

 <elem key="server">asimov.freenode.net</elem>
 <elem key="version">ircd-seven-1.1.3(20111112-b71671d1e846,charybdis-3.4-dev). asimov.freenode.net </elem>
 <elem key="servers">31</elem>
 <elem key="ops">36</elem>
 <elem key="chans">48636</elem>
 <elem key="users">84883</elem>
 <elem key="lservers">1</elem>
 <elem key="lusers">4350</elem>
 <elem key="uptime">511 days, 23:02:29</elem>
 <elem key="source host">source.example.com</elem>
 <elem key="source ident">NONE or BLOCKED</elem>

Authors


  • Doug Hoyte
  • Patrick Donnelly

References


See Also


Related NSE scripts to the irc-info.nse script:

Visit Nmap NSE Library for more scripts.

The irc-info.nse script may fail with the following error messages. Check for the possible causes by using the code snippets highlighted below found in the script source code. This can often times help in identifying the root cause of the problem.

Unable to open connection


Here is a relevant code snippet related to the "Unable to open connection" error message:

55:	  local output = stdnse.output_table()
56:	
57:	  local sd, line = comm.tryssl(host, port,
58:	    ("USER nmap +iw nmap :Nmap Wuz Here\nNICK %s\n"):format(nick),
59:	    {request_timeout=6000})
60:	  if not sd then return "Unable to open connection" end
61:	
62:	  local buf = stdnse.make_buffer(sd, "\r?\n")
63:	
64:	  while line do
65:	    stdnse.debug2("%s", line)

^ERROR :(.*)


Here is a relevant code snippet related to the "^ERROR :(.*)" error message:

148:	        output["source ident"] = ident
149:	      end
150:	      output["source host"] = host
151:	    end
152:	
153:	    local err = line:match "^ERROR :(.*)"
154:	    if err then
155:	      output.error = err
156:	    end
157:	
158:	    line = buf()

Version


This page has been created based on Nmap version 7.92.

Go back to menu.