CompTIA PenTest+ (PT0-003) — Question 36
While performing a penetration testing exercise, a tester executes the following command:
PS c:\tools> c:\hacks\PsExec.exe \\server01.comptia.org -accepteula cmd.exe
Which of the following best explains what the tester is trying to do?
Answer options
- A. Test connectivity using PSExec on the server01 using CMD.exe.
- B. Perform a lateral movement attack using PsExec.
- C. Send the PsExec binary file to the server01 using CMD.exe.
- D. Enable CMD.exe on the server01 through PsExec.
Correct answer: B
Explanation
The correct answer is B because the command uses PsExec to execute CMD.exe on a remote server, which is a method often used in lateral movement attacks. Options A, C, and D do not accurately describe the intent of the command, as it specifically aims to execute a command on a remote machine rather than merely testing connectivity or transferring files.