Mastering Machine Learning for Penetration Testing