Have you ever faced with the lack of possibility of using NMap? For instance if you have reverse shell as an unprivileged user and there are no useful tools preinstalled?
This is a small script which will help you to scan a network for live hosts and top 24 ports if you have nothing.
chmod +x host-enum.sh
./host-enum.sh
or
bash host-enum.sh
https://www.ivanglinkin.com/simple-host-enumeration/