Examers.io
ExamsOrganizationsHow it worksPricingHelp & FAQ
EC-Council logo

EC-CouncilCertified Penetration Testing Professional

Domain 4Objective 3

Linux Exploitation and Privilege Escalation CPENT Practice Questions (Page 1)

Part of the Perimeter Evasion and Host Exploitation domain, which makes up ~13% of our current practice bank.

48questions here
10free pages
10concepts

Questions 1–5

  1. 1expert · hard

    You have write access to a script that is executed by a cron job as root. However, the cron job runs with a minimal PATH and the script uses absolute paths for all commands. What is the best way to escalate privileges?

    Select an answer first
  2. 2application · medium

    You have a low-privilege shell on a Linux server. Running 'sudo -l' shows that the current user can run '/usr/bin/vim' as root without a password. Which action would you take to escalate privileges to a root shell?

    Select an answer first
  3. 3foundation · easy

    Which of the following is a prerequisite for a PATH hijacking attack to succeed?

    Select an answer first
  4. 4foundation · easy

    Which of the following is a common Linux persistence mechanism that involves creating a new service that starts automatically on boot?

    Select an answer first
  5. 5application · medium

    You discover that the root-owned cron job /etc/cron.d/cleanup runs the script /opt/cleanup.sh every hour. The script is writable by your user. What is the most effective way to escalate privileges?

    Select an answer first
Finished these 5 questions?

Review the revealed explanations, or continue through the curriculum.

Free Basic Practice is a study aid with revealable answers — not a scored exam. Examers.io is independent and not affiliated with or endorsed by EC-Council. “CPENT” is a trademark of its owner, used for identification only.