Telnet Pentesting

Last modified: 2023-10-30

Network Telnet

Telnet is an application protocol used on the internet or local area network. A default port is 23.

Enumeration

nmap --script telnet-encryption -p 23 <target-ip>
nmap --script telnet-ntlm-info -p 23 <target-ip>
nmap --script telnet-brute --script-args userdb=users.txt,passdb=passwords.txt,telnet-brute.timeout=8s -p 23 <target-ip>

Configuration Files

cat /etc/inetd.conf
# or
cat /etc/xinetd.d/telnet

Connect

telnet <target-ip> <target-port>
telnet <target-ip> 23