For windows victim machine
Method 1: using rlwrap command
# Catch the reverse shell using the below command.
sudo rlwrap nc -lnvp $PortNumberLast updated
# Catch the reverse shell using the below command.
sudo rlwrap nc -lnvp $PortNumberLast updated