nerdexam
CompTIACompTIA

PT0-002 · Question #299

PT0-002 Question #299: Real Exam Question with Answer & Explanation

Sign in or unlock PT0-002 to reveal the answer and full explanation for question #299. The question stem and answer options stay visible for context.

Post-exploitation and lateral movement

Question

A penetration tester opened a reverse shell on a Linux web server and successfully escalated privileges to root. During the engagement, the tester noticed that another user logged in frequently as root to perform work tasks. To avoid disrupting this user's work, which of the following is the BEST option for the penetration tester to maintain root-level persistence on this server during the test?

Options

  • AAdd a web shell to the root of the website.
  • BUpgrade the reverse shell to a true TTY terminal.
  • CAdd a new user with ID 0 to the /etc/passwd file.
  • DChange the password of the root user and revert after the test.

Unlock PT0-002 to see the answer

You've previewed enough free PT0-002 questions. Unlock PT0-002 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.

Topics

#Persistence#Linux administration#Post-exploitation#Root access
Full PT0-002 PracticeBrowse All PT0-002 Questions