CompTIA PenTest+ (PT1-002) — Question 69

A penetration tester was able to gain access successfully to a Windows workstation on a mobile client's laptop. Which of the following can be used to ensure the tester is able to maintain access to the system?

Answer options

Correct answer: A

Explanation

The correct answer is A, as using schtasks to create a scheduled task allows the tester to execute the specified command at startup, ensuring persistent access. Option B merely retrieves current startup commands without establishing persistence. Option C is not applicable to Windows and relates to Linux systems, while option D is about adding a user, which does not maintain access on its own.