This room shifts from how protocols work to how they get attacked and protected. The focus is on sniffing, man-in-the-middle attacks, TLS, SSH, and password attacks with Hydra, all framed through the CIA triad and real protocol weaknesses.
Core idea: once you understand which protocols transmit in cleartext and how authentication works, the natural next step is understanding disclosure, alteration, and how encryption changes the picture.
The room maps defensive goals to attack outcomes:
From an attacker perspective, this often becomes:
Examples: sniffing attacks break confidentiality, MITM attacks break integrity, and DoS-style attacks threaten availability.
A sniffing attack captures traffic traveling across the network. If the protocol uses cleartext, credentials and content can often be recovered directly.
tcpdump, Wireshark, tshark.sudo tcpdump port 110 -A
Example result: credentials like USER frank and PASS D2xc9CgD are visible in captured POP3 traffic because the session is unencrypted.
A man-in-the-middle attack happens when the victim thinks they are talking directly to the real destination, while an attacker sits in between and relays or alters traffic.
Main impact: MITM is not just about reading data. It is also about altering what each side sees, which directly breaks integrity.
The core mitigation for sniffing and MITM on application protocols is Transport Layer Security (TLS). It adds encryption and integrity protection on top of otherwise cleartext protocols.
Conceptually: the client first establishes TCP, then negotiates TLS, then sends the application protocol across the encrypted channel.
You do not need to memorize every handshake message, but you should understand the flow:
Why certificates matter: they help the client verify it is talking to the real server, which is what prevents straightforward MITM attacks in normal HTTPS usage.
SSH replaced Telnet as the secure choice for remote administration and also supports secure file transfer.
ssh mark@MACHINE_IP
scp document.txt mark@MACHINE_IP:/home/mark
Practical value: SSH encrypts credentials and terminal activity, and SCP/SFTP provide safer alternatives to plain FTP-style transfer.
Password attacks target “something you know” authentication. The room focuses on three common approaches:
Reality: dictionary attacks are often the sweet spot because real users pick weak and common passwords far more often than they admit.
THC Hydra is the room’s main tool for password attacks across many protocols including FTP, POP3, IMAP, SMTP, SSH, and HTTP-related logins.
hydra -l mark -P /usr/share/wordlists/rockyou.txt MACHINE_IP ftp
hydra -l frank -P /usr/share/wordlists/rockyou.txt MACHINE_IP ssh
Useful options:
-l: username-P: password wordlist-s: non-default port-V / -vV: show attempted credentials-t: parallel connections-d: debugging outputPT1 use: Hydra is straightforward and effective when you have authorization, a target service, and a realistic wordlist.
Best defense: combine multiple controls instead of relying on one. Strong passwords alone are not enough if there is no rate limiting or MFA.
FTP 21/tcp cleartext
FTPS 990/tcp encrypted
HTTP 80/tcp cleartext
HTTPS 443/tcp encrypted
IMAP 143/tcp cleartext
IMAPS 993/tcp encrypted
POP3 110/tcp cleartext
POP3S 995/tcp encrypted
SFTP 22/tcp encrypted
SSH 22/tcp encrypted
SMTP 25/tcp cleartext
SMTPS 465/tcp encrypted
Telnet 23/tcp cleartext