CompTIA CASP+ (CAS-004) — Question 14

During a system penetration test, a security engineer successfully gained access to a shell on a Linux host as a standard user and wants to elevate the privilege levels.
Which of the following is a valid Linux post-exploitation method to use to accomplish this goal?

Answer options

Correct answer: A

Explanation

The correct answer, A, is a valid method to elevate privileges by using sudo in combination with an escape string to spawn a shell. Options B, C, D, and E do not directly facilitate privilege escalation; instead, they focus on other tactics such as password cracking, reading user data, exploiting service paths, or database queries.