Teaching pentesting and hacking skills to cybersecurity students