nerdexam
CompTIA

PT0-002 · Question #241

A penetration tester is able to use a command injection vulnerability in a web application to get a reverse shell on a system After running a few commands, the tester runs the following: python -c 'im

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

Post-exploitation and lateral movement

Question

A penetration tester is able to use a command injection vulnerability in a web application to get a reverse shell on a system After running a few commands, the tester runs the following:

python -c 'import pty; pty.spawn("/bin/bash")' Which of the following actions Is the penetration tester performing?

Options

  • APrivilege escalation
  • BUpgrading the shell
  • CWriting a script for persistence
  • DBuilding a bind shell

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

#Reverse Shell#Shell Upgrade#Post-exploitation#Python Exploits
Full PT0-002 Practice