nerdexam
CompTIACompTIA

PT0-002 · Question #241

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

The correct answer is B: Upgrading the shell. The penetration tester is performing an action called upgrading the shell, which means improving the functionality and interactivity of the shell. By running the python command, the penetration tester is spawning a new bash shell that has features such as tab completion, command

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

Explanation

The penetration tester is performing an action called upgrading the shell, which means improving the functionality and interactivity of the shell. By running the python command, the penetration tester is spawning a new bash shell that has features such as tab completion, command history, and job control. This can help the penetration tester to execute commands more easily and

Topics

#Reverse Shell#Shell Upgrade#Post-exploitation#Python Exploits

Community Discussion

No community discussion yet for this question.

Full PT0-002 PracticeBrowse All PT0-002 Questions