Network basics
IP addresses, ports and protocols, the language every machine speaks.
Before any penetration test you need to understand how machines talk to each other. This room covers IP addresses, ports and the most common protocols.
0 of 5 · 0 of 60 points
Task 1: IP addresses
Every machine on a network has an IP address that identifies it, like a house number on a street.
An IPv4 address is four numbers (each from 0 to 255) separated by dots:
192.168.1.10
Some ranges are private: they are used inside homes and companies and are never routed on the internet:
| Range | Example |
|---|---|
10.0.0.0/8 | 10.0.0.5 |
172.16.0.0/12 | 172.16.4.20 |
192.168.0.0/16 | 192.168.1.10 |
1.1How many octets make up an IPv4 address?
101.2Which of these addresses is private (not routed on the internet)?
10Task 2: Ports and protocols
The address gets you to the machine, and the port gets you to a service on it. One server can run a website and a mail server at the same time, each on its own port.
| Protocol | Port | Used for |
|---|---|---|
| SSH | 22 | secure remote login |
| DNS | 53 | turning names into addresses |
| HTTP | 80 | websites |
| HTTPS | 443 | encrypted websites |
When you type wethaq.iq in a browser, your machine first asks a DNS server for its address, then connects to port 443.
WQ{p0rts_4nd_pr0t0c0ls}
2.1What is the default port for HTTPS?
102.2Which protocol turns domain names into IP addresses?
102.3Submit the flag hidden at the end of the task text
20