Q: What is the difference between a forward shell and a reverse shell?
A:
Forward shell: The attacker connects to the compromised machine. This is suitable when the attacker is in an internal network and the target has a public IP address.
Reverse shell: The compromised machine actively connects back to the attacker. This is suitable when the attacker is on an external network and the target is within an internal network.