Using 0xsp mongoose you will be able to scan targeted operating system for any possible way for privilege escalation attacks,starting…