Attacks and Exploits
A tester has root on a Linux host. Which file holds the hashed local passwords to copy for offline cracking?
Show the answer
Correct answerA. /etc/shadow
AWhy this is right: It stores local account password hashes and is readable only by root, so it is the dump target.
BWhy not this: It lists accounts and shells, but modern systems keep only a placeholder here, not the hash.
CWhy not this: It defines who may use sudo and with what rights; it holds no password hashes.
DWhy not this: It maps group names to members and holds no password hashes.
/etc/shadow stores the password hashes for local accounts and is readable only by root, so root access lets a tester copy it and crack the hashes offline. /etc/passwd lists accounts but holds only a placeholder in place of the hash on modern systems.