A penetration test is an authorized simulated attack performed on a computer system to evaluate its security…