cstrien/skills_dior/1026-pentesting-rusersd

Claude Code and agent skill by cstrien/skills_dior

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Enumerate usernames from hosts running the rusersd protocol (ports 512-514). Use this skill whenever you need to discover user accounts on a target system, perform network reconnaissance, or when rusersd, rusers, or RPC port mapper services are mentioned. This is a critical enumeration technique for penetration testing and security assessments.

Install

npx vskill@latest install cstrien/skills_dior/1026-pentesting-rusersd

SKILL.md

The same SKILL.md was published earlier as cstrien/skills_dior/1026-pentesting-rusersd.

Pentesting Rusersd Service

Overview

The rusersd protocol (Remote Users Daemon) is a legacy Unix service that can leak usernames from a target host. This is a valuable reconnaissance technique during penetration testing and security assessments.

When to Use This Skill

  • You need to enumerate usernames on a target system
  • Port scanning reveals ports 512, 513, or 514 (rsh, rexec, rusers)
  • RPC port mapper shows rusersd service
  • You're performing network reconnaissance on Unix/Linux systems
  • You need to gather user account information for further exploitation

What is Rusersd?

Rusersd is a legacy Unix daemon that provides information about logged-in users on a system. It's part of the r-commands suite (rsh, rlogin, rexec) and is notoriously insecure:

  • No authentication required to query
  • No encryption - data sent in plaintext
  • Often misconfigured or left running on legacy systems
  • Port 513/UDP is the standard port

Enumeration Commands

Basic User Enumeration
bash
# Install rusers tool (if not available)
apt-get install rusers
# Query a specific target
rusers -l <target-ip>
# Example output:
# tiff potatohead:console Sep 2 13:03 22:03
# katykat potatohead:ttyp5 Sep 1 09:35 14
Understanding the Output

The output format is:

<username> <hostname>:<terminal> <date> <time> <idle-time>
  • Username: The logged-in user account
  • Hostname:Terminal: Which system and terminal (console, ttyp0, pts/0, etc.)
  • Date/Time: When the session started
  • Idle Time: How long since last activity

Detection Methods

Via Port Scanner
bash
# Nmap scan for rusersd
nmap -sU -p 513 <target>
# Full RPC scan
nmap -sU --script rpcinfo <target>
Via RPC Port Mapper
bash
# Check RPC services
rpcinfo -p <target>
# Look for rusersd in the output
# program vers proto port service
# 100006 2,3 udp 513 rusers

Practical Workflow

  1. Identify the service - Scan for UDP port 513 or check RPC port mapper
  2. Run enumeration - Use rusers -l <target> to get usernames
  3. Document findings - Record all discovered usernames
  4. Use for further testing - Try these usernames in other attacks (SSH brute force, password spraying, etc.)

Security Implications

Why This Matters
  • Username discovery is often the first step in an attack
  • Legacy systems may still have this running
  • No authentication means anyone can query
  • Information disclosure can lead to targeted attacks
Remediation (for defenders)
  • Disable rusersd service
  • Block UDP port 513 at firewall
  • Remove rusers package if not needed
  • Use modern alternatives (SSH, LDAP, etc.)

Example Scenarios

Scenario 1: Initial Reconnaissance

Input: "I found UDP port 513 open on 192.168.1.100"

Action:

bash
rusers -l 192.168.1.100

Expected Output: List of usernames logged into the system

Scenario 2: RPC Service Discovery

Input: "rpcinfo shows rusersd on the target"

Action:

bash
# Confirm with direct query
rusers -l <target>
# Document all usernames for password testing

Limitations

  • Legacy protocol - Modern systems rarely run this
  • UDP-based - May be blocked by firewalls
  • Requires rusers client - May need to install the tool
  • Network access - Must be able to reach the target on UDP 513

Related Techniques

  • RPC enumeration - Check for other legacy RPC services
  • NFS enumeration - Often runs alongside rusersd
  • Banner grabbing - Get service version information
  • Username harvesting - Combine with other enumeration methods

Quick Reference

CommandPurpose
rusers -l <ip>List users on target
nmap -sU -p 513 <ip>Scan for rusersd
rpcinfo -p <ip>Check RPC services
apt-get install rusersInstall client tool

Notes

  • This is a passive information gathering technique
  • No authentication or credentials required
  • Results may be cached or stale
  • Always document findings for reporting
  • Use responsibly in authorized security assessments only

Security

  • Security scanPassed, 90 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
1
7-day trend score
0

Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/cstrien/skills_dior/1026-pentesting-rusersd/badge)](https://verified-skill.com/skills/cstrien/skills_dior/1026-pentesting-rusersd)

Something wrong with this skill or its page? Tell us.