In this recipe, we will use a known exploit to gain elevated privileges for the logged-in user in Linux. We will have login credentials for a standard user and we will then escalate their privileges through local account access.
Local Linux privilege escalation
Getting ready
Let's ensure the following prerequisites:
- Your Kali VM is up and running
- Download and set up Vulnerable OS 2 (VulnOS2) from https://www.vulnhub.com/entry/vulnos-2,147/
- Attach the network interface to your host-only network
- Start your VulnOS2 image
Refer to Chapter 1, Installing Kali and the Lab Setup, if you need assistance setting up the VM in VirtualBox.