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