# Telnet Pentesting

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

### Enumeration <a href="#enumeration" id="enumeration"></a>

```shellscript
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 <a href="#configuration-files" id="configuration-files"></a>

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

### Connect <a href="#connect" id="connect"></a>

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