Challenge ·Easy

Find the Listening Port

A mystery service is running on this VM. Find which TCP port it is listening on and write the port number to /tmp/answer.

A mystery service is running on this Linux VM. Your job is to discover which TCP port it is listening on, and then write that port number (just the number, no extra characters) to /tmp/answer.

Hint 1 — what tool should I use?

ss (socket statistics) is the modern replacement for netstat. Try ss -tnlp to list tcp sockets in listen state, with numeric addresses and process info.

Hint 2 — how do I write the answer?

Once you know the port number N:

echo N > /tmp/answer

Then click "Verify" again.