Post-exploitation and Lateral Movement

A tester on a Windows host wants to find passwords stored as registry values rather than in files. Which approach BEST searches for the string?

Show the answer

Correct answerD. Querying the registry with a recursive text search

AWhy not this: A file content search such as findstr reads files on disk and does not search registry values.

BWhy not this: A file name search matches only names, so it finds neither registry values nor file contents.

CWhy not this: This lists saved Windows credentials but does not search registry values for a given string.

DWhy this is right: reg query can recursively search registry keys and values for a string, which matches the stated target.

The reg query command can search registry keys and values recursively for a string such as password, which suits values stored in the registry. A recursive findstr search is tempting, but it searches file contents on disk and never reads registry values.