Attacks and Exploits

Netcat is available on a Linux server and the tester's host, and the server's firewall blocks all inbound connections but allows outbound traffic. Which setup gives the tester an interactive shell?

Show the answer

Correct answerA. Listener on the tester's host, with the server connecting out and sending a shell

AWhy this is right: A reverse shell makes the server connect outbound, which the firewall permits.

BWhy not this: Switching to UDP does not avoid the inbound block, and it gives no reliable session.

CWhy not this: A bind shell needs an inbound connection to the server, which the firewall drops.

DWhy not this: Scan mode only checks whether ports are open; it provides no shell.

A reverse shell has the server initiate the connection to a Netcat listener on the tester's host, so the outbound-allowed firewall passes it. A bind shell needs an inbound connection to the server, which the firewall blocks.