A penetration tester is analyzing a compromised Windows system and wants to check for stored credentials in the Windows Credential Manager. Which command-line utility can be used to list saved credentials?
The `cmdkey /list` utility enumerates all entries stored in Windows Credential Manager, displaying target names and types without revealing passwords. It directly satisfies the scenario's requirement to list saved credentials on the compromised host, running natively from the command line without additional tooling.
Why this answer
The cmdkey utility is a built-in Windows command-line tool that manages stored credentials in the Credential Manager. Running 'cmdkey /list' enumerates all saved credentials (including domain, generic, and certificate-based) for the current user, showing target names and types. This is the standard way a penetration tester checks for cached credentials that could be reused for lateral movement.
Exam trap
CPENT often tests the confusion between commands that enumerate accounts or privileges (net user, whoami /priv) and those that specifically enumerate stored credentials, causing candidates to pick a command that lists users rather than cached secrets.
How to eliminate wrong answers
Option A is wrong because 'gpresult /r' displays the Resultant Set of Policy (RSoP) for a user or computer — it reports applied Group Policy objects, not stored credentials. Option B is wrong because 'net user /domain' lists domain user accounts, not credentials stored on the local system. Option D is wrong because 'whoami /priv' shows the privileges assigned to the current token (e.g., SeDebugPrivilege), which is useful for privilege escalation analysis but does not reveal saved credentials.