Post-exploitation and Lateral Movement

A host firewall on a compromised server blocks all inbound connections but allows outbound TCP 443. The tester wants an interactive shell using Netcat. Which setup works?

Show the answer

Correct answerC. A listener on the tester's system, with the server connecting out to it

AWhy not this: PsExec needs inbound SMB to the server, which the firewall blocks.

BWhy not this: sshuttle needs an inbound SSH login to the server, which is blocked, and it gives no shell.

CWhy this is right: a reverse shell uses only the allowed outbound connection, so the blocked inbound path is never needed.

DWhy not this: A bind shell needs the tester to connect inbound, which the host firewall blocks.

With inbound traffic blocked, the shell must be a reverse shell: Netcat listens on the tester's system and the server connects out over the permitted port. A bind shell on the server fails because the firewall drops the inbound connection to it.