16/29
Sign inSign up free

572. Which Ports Are Exposed?

medium 20 XP ~8 minHands-on lab

Before this server is put behind a public IP, security wants an audit of what it listens on. Several services are running.

Task

  1. Write /home/student/exposed.txt with the TCP ports reachable from other machines, that is, those listening on all interfaces, not only on loopback: one port number per line, sorted from low to high.
  2. One of the exposed services is a process called debug-console. Stop it. Leave every other service running.
  3. After that, update exposed.txt so it lists only what is still exposed.

About this machine

Ubuntu 24.04 with no internet access. You are student with passwordless sudo. The grader checks the final state of the machine, not the commands you typed. Values like names and ports are generated for you.

Teaching or writing about this? Embed this lab on your page

TerminalNot started

Your machine is ready to start

A fresh, isolated Ubuntu machine boots in a few seconds with the task already set up.

No account needed: 3 of 3 free tries left. Guest machines last 30 minutes.