added checks for sudo and nc (netcat)