ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 211 - PT0-002 discussion

Report
Export

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?

A.
Privilege escalation
Answers
A.
Privilege escalation
B.
Upgrading the shell
Answers
B.
Upgrading the shell
C.
Writing a script for persistence
Answers
C.
Writing a script for persistence
D.
Building a bind shell
Answers
D.
Building a bind shell
Suggested answer: B

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 efficiently.

asked 02/10/2024
David Murinda
42 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first