nerdexam
CompTIA

PT0-002 · Question #457

After obtaining a reverse shell connection, a penetration tester runs the following command: Which of the following is the fastest way to escalate privileges on this server?

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

Post-exploitation and lateral movement

Question

After obtaining a reverse shell connection, a penetration tester runs the following command:

Which of the following is the fastest way to escalate privileges on this server?

Exhibit

PT0-002 question #457 exhibit

Options

  • AEditing the file /etc/passwd to add a new user with uid 0
  • BCreating a Bash script, saving it on the /tmp folder, and then running it
  • CExecuting the command sudo vi -c '!bash'
  • DEditing the file/etc/sudoers to allow any command

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

#Privilege Escalation#Sudo Vulnerabilities#Linux Exploitation#Post-exploitation
Full PT0-002 Practice