GIAC Penetration Tester (GPEN) — Question 54
You have compromised a Windows XP system and Injected the Meterpreter payload into the lsass process. While looking over the system you notice that there is a popular password management program on the system. When you attempt to access the file that contains the password you find it is locked. Further investigation reveals that it is locked by the passmgr process. How can you use the Meterpreter to get access to this file?
Answer options
- A. Use the getuid command to determine the user context the process is runningunder, then use the imp command to impersonate that user.
- B. use the getpid command to determine the user context the process is runningunder, then use the Imp command to impersonate that user.
- C. Use the execute command to the passmgr executable. That will give you access to the file.
- D. Use the migrate command to jump to the passmgr process. That will give you accessto the file.
Correct answer: C
Explanation
The correct answer is C because executing the passmgr process grants access to the file locked by it. Options A and B are incorrect as impersonation does not provide direct access to the locked resource. Option D, while it involves migrating to the passmgr process, does not guarantee access to the file as effectively as executing the process does.