| name | irc-pentesting |
| description | Perform IRC (Internet Relay Chat) security testing and enumeration. Use this skill whenever the user mentions IRC, IRC servers, port 6667, IRC channels, IRC operators, or wants to enumerate/test IRC services. Trigger for any IRC-related security assessment, vulnerability scanning, or reconnaissance tasks involving IRC protocols on ports 194, 6667, or 6660-7000. |
IRC Pentesting
A skill for performing security testing and enumeration of IRC (Internet Relay Chat) services.
Overview
IRC is a plain text protocol originally assigned port 194/TCP by IANA, but commonly runs on ports 6667/TCP and 6660-7000 to avoid requiring root privileges. This skill helps you enumerate IRC servers, identify vulnerabilities, and gather intelligence during security assessments.
Default Ports
- 194/TCP - Original IANA-assigned port
- 6667/TCP - Most common IRC port
- 6660-7000/TCP - Alternative IRC ports
Enumeration
Banner Grabbing
Check if the IRC server supports TLS and gather initial information:
nc -vn <IP> <PORT>
openssl s_client -connect <IP>:<PORT> -quiet
Manual Enumeration
Connect to the IRC server with a random nickname and enumerate information:
USER <random_username> 0 * <random_username>
NICK <random_nickname>
VERSION
HELP
INFO
LINKS
HELPOP USERCMDS
HELPOP OPERCMDS
OPERATOR CAPA
ADMIN
USERS
TIME
STATS a
NAMES
LIST
WHOIS <USERNAME>
USERHOST <USERNAME>
USERIP <USERNAME>
JOIN <CHANNEL_NAME>
OPER <USERNAME> <PASSWORD>
Default Credentials
Some IRC servers have known default passwords:
PASS wealllikedebian
NICK <nickname>
USER <username> <hostname> <server> :<realname>
Nmap Scanning
Use Nmap scripts to identify IRC services and potential vulnerabilities:
nmap -sV --script irc-botnet-channels,irc-info,irc-unrealircd-backdoor -p 194,6660-7000 <IP>
Shodan Queries
Search Shodan for IRC servers:
- Query:
looking up your hostname
- Filter by port:
port:6667 or port:194
User Types
- Regular Users: Need only a nickname to connect
- Operators: Require username and password, have elevated privileges
- Administrators: Highest privilege level
Workflow
- Identify IRC services - Scan target ports (194, 6667, 6660-7000)
- Banner grab - Check for TLS and gather version info
- Connect manually - Use random nickname to enumerate
- Gather intelligence - Run WHOIS, NAMES, LIST commands
- Test credentials - Try default passwords and operator brute force
- Document findings - Record channels, users, and vulnerabilities
Important Notes
- IRC servers perform reverse-DNS lookups on connecting IPs
- Some commands require operator privileges
- TLS support varies by server configuration
- Always obtain proper authorization before testing
Example Session
nc <IP> 6667
USER testuser123 0 * testuser123
NICK testuser123
VERSION
NAMES
LIST
WHOIS <target_user>
JOIN
JOIN
When to Use This Skill
Use this skill when:
- You need to enumerate IRC services on a target
- You're performing security assessments involving IRC
- You want to identify IRC vulnerabilities
- You need to gather intelligence from IRC channels
- You're testing IRC server configurations
- You encounter open ports 194, 6667, or 6660-7000 during scanning