You can learn penetration testing by signing up for online penetration testing courses and penetration testing bootcamps. To master the subject, you can also enroll in a four-year cyber security or information security undergraduate degree program focused on penetration testing. If you lack experience with programming languages, Enki and CodeHub are some of the best coding apps to learn to code.