Show answerHide answer
Correct answer: C Creating a scheduled task
Explanation
Explanation:Maintaining access after rebooting the compromised system requires a persistence mechanism — something that automatically re-establishes a connection or executes malicious code every time the system starts up or a user logs in.
Creating a scheduled task (using schtasks.exe on Windows or cron/at on Linux) is one of the most reliable, widely used, and stealthy persistence techniques in penetration testing and red teaming.
Why It Is the Best Choice:
Scheduled tasks survive reboots and can be configured to run:
At system startup (/SC ONSTART)
At user logon (/SC ONLOGON)
Daily or weekly schedules
As SYSTEM or the current user
It can launch a reverse shell, download-and-execute payload, run a beacon, or re-establish command-and-control automatically.
It uses a native Windows utility (schtasks.exe), making it a living-off-the-land technique that does not require dropping additional tools.
It can be made stealthy by using legitimate-looking names such as “WindowsUpdateCheck” and running hidden.
This is a classic persistence technique covered in PT0-003 objectives.
Why the Other Options Are Incorrect:
A. Establishing a reverse shell
A reverse shell provides temporary remote access. However, once the system reboots or the process is terminated, the connection is lost. It does not automatically restart after reboot unless combined with a persistence mechanism. Not persistent by itself.
B. Executing a process injection attack
Process injection (such as DLL injection or process hollowing) is used for execution and defense evasion. It allows malicious code to run within another process’s memory but does not survive a reboot unless paired with a persistence mechanism. Not persistence on its own.
D. Performing a credential-dumping attack
Credential dumping extracts password hashes, Kerberos tickets, or plaintext credentials for lateral movement or privilege escalation. It provides access opportunities but does not maintain access after reboot. This is credential access, not persistence.
Key Learning Point:
Scheduled tasks are one of the most common and effective persistence techniques. They are frequently contrasted with non-persistent methods like reverse shells and process injection in certification exams.
Conclusion:
To maintain access after rebooting the system, the best technique among the options is creating a scheduled task.