← Back to all lessons

04 / Systems / 35 min READ + PRACTICE

Asset inventory and service discovery.

Map a permitted lab network and interpret ports without treating every open service as a vulnerability.

Practice boundaryUse your own devices, your isolated practice VM or 127.0.0.1. Get explicit authorization for any other system.

Inventory your assets

List your lab machines, IP addresses, operating systems, exposed ports and owners. First check listening sockets from the VM itself. Compare what the machine says it is serving with what a second permitted VM can actually reach.

Use a narrow probe

A connection attempt to one specific port of your own VM can tell you whether the service is reachable. A refused connection, dropped packet and application-level denial are different observations. Prefer explicit targets and small request counts.

Verify a finding

A banner may be absent, misleading or outdated. Record the observed protocol, configuration and evidence; do not equate a version string with exploitability. Tie each issue to an actual misconfiguration and a recommended fix.

HANDS-ON EXERCISE

Try it in your lab

Record the services listening on your own lab VM with ss -ltn, then confirm one chosen port from the other VM with permission.

CHECKPOINT

Make sure it clicks

Why can an open port be intentional and secure?

TRY WITH OPENCODE

A prompt you can adapt

Turn this redacted list of my lab listening ports into an asset inventory and identify verification questions.
How to set up OpenCode ↗
Your progress stays in this browser only.