PT0-001 · Question #236
A penetration tester discovers an anonymous FTP server that is sharing the C:\drive. Which of the following is the BEST exploit?
The correct answer is B. Change a service binary location path to point to the tester's own payload. With anonymous FTP write access to C:\, modifying a service binary path to point to a malicious payload is the most direct and reliable privilege escalation path.
Question
A penetration tester discovers an anonymous FTP server that is sharing the C:\drive. Which of the following is the BEST exploit?
Options
- APlace a batch script in the startup folder for all users.
- BChange a service binary location path to point to the tester's own payload.
- CEscalate the tester's privileges to SYSTEM using the at.exe command.
- DDownload, modify, and reupload a compromised registry to obtain code execution.
How the community answered
(36 responses)- A6% (2)
- B67% (24)
- C8% (3)
- D19% (7)
Why each option
With anonymous FTP write access to C:\, modifying a service binary path to point to a malicious payload is the most direct and reliable privilege escalation path.
Placing a batch script in the startup folder depends on a user logging in to trigger execution, making it unreliable and slower compared to a service-based approach.
Windows services commonly run under high-privilege accounts such as SYSTEM. By using FTP write access to redirect a service's binary path to a custom payload, the attacker gains code execution at that service's privilege level when the service starts or restarts. This technique - known as service binary path hijacking - directly leverages the write access without requiring user interaction or complex tooling.
The at.exe command schedules tasks but does not directly exploit FTP write access to C:\ for immediate privilege escalation as effectively as service binary replacement.
Downloading, modifying, and reuploading a registry hive via FTP requires offline registry import tooling and is far more complex and unreliable than direct binary replacement.
Concept tested: Service binary path hijacking via FTP write access
Source: https://attack.mitre.org/techniques/T1574/010/
Topics
Community Discussion
No community discussion yet for this question.