All Posts

Comptia Pentest+ 2023 Questions and answer - Part 1

Mary Mary Smith
03 Mar 2023
2 min
0

3. After exploiting a target with the Metasploit Meterpreter payload, a few days later, Alice loses access to the remote host. The vulnerability used to exploit the system originally is still open. What could be the reason that the malware scan discovered Meterpreter and removed it?

A) The system was patched
B) The system was rebooted
C) Meterpreter crashed
D) Buffer overflow



4. Taken under consideration the following bash one-liner command: What effect does the string {1..254} has in the above command?

A) All integers between 1 and 254 are indicated to be fed into the command for $i at once
B) All integers from 1 to 254 are indicated to be iteratively fed into the command for $i
C) Every other integer starting from 1 is indicated to be fed iteratively into the command for $i that stops once it reaches at least 254
D) The numbers 1 and 254 are indicated to be fed into the command for $i



5. Consider the above command-line, what is the effect of the string 2>&1 in this command?

A) Makes the ping command skip every second IP address in the numeric sequence
B) Redirects STDOUT to a file named &1
C) Concatenates STDERR to STDOUT before writing to a file named &1
D) Redirects STDERR to STDOUT



3. Right Answer: C
Explanation: Meterpreter injects itself into another process and a memory resident tool. The system is rebooted to remove the memory resident Meterpreter process. The exploit is simply repeated by Alice to regain access but additional steps are to be taken to ensure continued access.

4. Right Answer: B
Explanation: A command flow statement indicating all commands following should be executed repetitively and iteratively -for all possible values of a variable, 'i' in this case. A number sequence starting with 1 and ending at 254 is indicated by the string {1..254}. This is an example of a -for loop.

5. Right Answer: D
Explanation: Error messages (STDERR) are redirected to the terminal output (STDOUT) by this component.

0 Comments
Leave a comment