Information Gatheringidentuser-enumerationpentestingperltcp-ports

ident-user-enum

Queries the ident service (113/TCP) to determine the OS-level user running processes on specified TCP ports of a target system. Helps prioritize services for pentesting and gather usernames for password guessing attacks.

Description

ident-user-enum is a simple Perl script designed to query the ident service on remote hosts to identify which OS-level user owns the process listening on specific TCP ports. This information is valuable during penetration testing as it allows security professionals to prioritize attacking services running with elevated privileges like root.

The tool connects to port 113/TCP (ident service) on the target and requests ownership details for the specified ports. Services running as root or other privileged users become high-priority targets since they may offer greater access if compromised.

Additionally, the usernames discovered can be used as a wordlist for password brute-force or guessing attacks against other network services on the same target, significantly improving attack success rates.

How It Works

The tool establishes a TCP connection to port 113 (ident/auth service) on the target host and sends ident queries in the format 'port,remote-port' for each specified local port. The ident server responds with the username associated with the process listening on the queried local port, assuming the ident service is running and configured to disclose this information. It leverages Perl libraries libnet-ident-perl and libio-socket-ip-perl for network communication and parsing.

Installation

bash
sudo apt install ident-user-enum

Examples

Scan the remote host (192.168.1.13) and determine which user is running the service on the specified ports (22 139 445).
ident-user-enum 192.168.1.13 22 139 445
Query the ident service to identify the user running the SSH service (port 22) on target 192.168.1.13.
ident-user-enum 192.168.1.13 22
Check which user owns the Samba services (ports 139 and 445) on target 192.168.1.13.
ident-user-enum 192.168.1.13 139 445
Enumerate users running web services (ports 80 and 443) on target 10.0.0.5.
ident-user-enum 10.0.0.5 80 443
Identify users for FTP (21) and Telnet (23) services on target 192.168.1.100.
ident-user-enum 192.168.1.100 21 23
Display the help/usage information for ident-user-enum.
ident-user-enum -h
Updated 2026-04-16kali.org ↗