Post-exploitation and Lateral Movement

A tester finds a compiled binary on a compromised Linux host and has no source code. Which tool BEST checks it for hardcoded credentials?

Show the answer

Correct answerD. strings

AWhy not this: It reports the file type and architecture but does not show text embedded in the file.

BWhy not this: It lists symbol names from the binary, which are not the same as embedded string data such as passwords.

CWhy not this: It lists the shared libraries the binary depends on, not any text stored inside it.

DWhy this is right: It pulls printable text out of a binary, exposing embedded passwords, keys or connection strings.

The strings utility extracts printable character sequences from a binary, which can reveal embedded passwords, keys or connection strings. The file command is tempting but only identifies the file type and architecture.