ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 275 - PT0-002 discussion

Report
Export

During an assessment, a penetration tester found a suspicious script that could indicate a prior compromise. While reading the script, the penetration tester noticed the following lines of code:

Which of the following was the script author trying to do?

A.
Spawn a local shell.
Answers
A.
Spawn a local shell.
B.
Disable NIC.
Answers
B.
Disable NIC.
C.
List processes.
Answers
C.
List processes.
D.
Change the MAC address
Answers
D.
Change the MAC address
Suggested answer: A

Explanation:

The script author was trying to spawn a local shell by using the os.system() function, which executes a command in a subshell. The command being executed is "/bin/bash", which is the path to the bash shell, a common shell program on Linux systems. The script author may have wanted to spawn a local shell to gain more control or access over the compromised system, or to execute other commands that are not possible in the original shell. The other options are not plausible explanations for what the script author was trying to do.

asked 02/10/2024
Adrian Petrisoaia
35 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first