Telnet

Telnet

One-liner: A legacy protocol for remote CLI access that transmits all data (including credentials) in cleartext.

๐ŸŽฏ What Is It?

TELNET (Teletype Network) is a network protocol developed in 1969 for remote command-line access to systems. It operates over TCP port 23 by default. From a security perspective, Telnet is considered insecure because all communicationsโ€”including usernames and passwordsโ€”are transmitted in plaintext.

Despite being deprecated for remote administration (replaced by Secure Shell (SSH)), the telnet client remains valuable for Banner Grabbing and testing TCP connectivity.

๐Ÿค” Why It Matters

๐Ÿ”ฌ How It Works

Core Principles

  1. Client initiates TCP connection to target port (default 23)
  2. All data exchanged in plaintext (no encryption)
  3. Session provides interactive command-line access
  4. Can connect to any TCP port for manual protocol interaction
# Connect to web server and grab banner
telnet 10.10.10.1 80
Trying 10.10.10.1...
Connected to 10.10.10.1.
Escape character is '^]'.
GET / HTTP/1.1
Host: example.com

HTTP/1.1 200 OK
Server: Apache/2.4.61      # โ† Banner reveals version!
...

Testing SMTP

telnet mail.example.com 25
EHLO test
MAIL FROM:<test@test.com>

๐Ÿ“Š Common Use Cases

Use Case Port Purpose
Remote Admin (legacy) 23 Shell access (insecure)
Banner Grabbing HTTP 80/443 Identify web server
Banner Grabbing SMTP 25 Identify mail server
Banner Grabbing FTP 21 Identify FTP service
Port Testing Any Verify TCP connectivity

๐Ÿ›ก๏ธ Detection & Prevention

Security Risks

How to Detect

How to Prevent / Mitigate

๐ŸŽค Interview Angles

Common Questions

STAR Story

Situation: During a network assessment, discovered Telnet enabled on core switches.
Task: Demonstrate the risk and recommend remediation.
Action: Used Wireshark to capture Telnet session credentials in plaintext during authorized test. Documented with screenshots.
Result: Client immediately disabled Telnet and migrated to SSH. Finding rated as Critical in report.

โœ… Best Practices

โŒ Common Misconceptions

๐Ÿ“š References