HackPath Academy

Core Technical Skills

Networking Essentials for Hackers

TCP/IP, ports, and what actually happens when you connect to a server.

Beginner · 15 min

Open the interactive lesson →

You can't attack what you don't understand. Every remote attack rides on top of networking, so a working mental model of TCP/IP is non-negotiable.

Ports & services

A server has 65535 TCP ports. A service 'listens' on a port. Finding which ports are open tells you what you can attack.

PortServiceWhy it matters
22SSHRemote shell — brute force / key attacks
80 / 443HTTP / HTTPSWeb apps — the biggest attack surface
3306MySQLDatabase — often misconfigured
445SMBWindows file sharing — classic exploits
3389RDPWindows remote desktop

The TCP handshake

TCP opens a connection with a 3-way handshake: SYN → SYN/ACK → ACK. Port scanners abuse this: send a SYN, and the response tells you if the port is open, closed, or filtered.

Take the quiz →