>_ IzzyLab

Topic breakdown

Listening (LISTEN) sockets show which services accept incoming connections — the first step in diagnosing "what's exposed at all". The modern tool for this is ss (a replacement for the outdated netstat): a combination of flags narrows its output down to TCP, LISTEN states only, and numeric ports instead of service names. The result is then saved to a file with plain > redirection; in the output the port number comes after the colon in the local address column.

What's checked

  1. /root/ports.txt has the ports of the running services

What it looks like