Post-exploitation and Lateral Movement

On a compromised server, a tester wants a database service that only local processes can reach, as a candidate for a port forward. Which netstat -an line shows this?

Show the answer

Correct answerB. TCP 127.0.0.1:3306 in LISTENING state

AWhy not this: TIME_WAIT is a closing connection on an ephemeral port, not a service listening for connections.

BWhy this is right: Bound to the loopback address, so only local processes can connect; a forward would expose it.

CWhy not this: Bound to all interfaces, so the service is already reachable over the network and needs no forward.

DWhy not this: An established session shows an active client connection, not which interface a service is bound to.

A listener bound to 127.0.0.1 accepts connections only from the host itself, so reaching it remotely needs a forward or tunnel. A listener on 0.0.0.0 is bound to all interfaces and is already reachable from the network.