telnet
Table of Contents
Telnet
Description
Telnet (Teletype Network) is one of the oldest network protocols, defined in 1969. Its original purpose was to allow a user on one computer to log in and control a remote computer as if they were physically present at the remote machine's console. It operates at the Application Layer of the TCP/IP stack and uses TCP port 23 by default.
How it Works
The Telnet protocol works by establishing a Client-Server connection.
- The Telnet client sends user keystrokes to the server.
- The Telnet server executes the commands and sends the text-based output back to the client.
The major security flaw that has led to its deprecation for remote administration is that Telnet transmits all data, including login credentials, in plain text (unencrypted).
Modern Use (Cyber Security)
While rarely used today for its intended purpose (it has been replaced by SSH), the telnet client utility remains invaluable for network diagnostics and active reconnaissance:
- It can be used to test connectivity to any specific TCP port on any server.
- By connecting to a specific port (e.g., port 80 for HTTP or port 25 for SMTP), a user can sometimes manually communicate with the service's service banner or even manually issue protocol commands. This is a simple and quick way to check if a port is open and a service is responding.
Examples
The telnet command is a crucial tool for a quick port status check, often replacing the need for a full port scanner in a simple scenario.
Command-Line Usage
The basic command syntax is:
telnet [host_address] [port_number]