Another great way would be to take the Offensive Security 101 course with lab access. You will be provided with great material and an awesome lab environment set up especially for pentesting and if you stick to the few rules it is legal.