PT0-003 · Question #63
PT0-003 Question #63: Real Exam Question with Answer & Explanation
The correct answer is D: Secrets. The findstr /SIM /C:"pass” .txt .cfg .xml command searches for the keyword "pass" recursively across .txt, .cfg, and .xml files on the system. This is a common penetration testing technique used to locate hardcoded credentials, API keys, or plaintext passwords stored in configura
Question
During an assessment, a penetration tester obtains a low-privilege shell and then runs the following command: findstr /SIM /C:"pass" *.txt *.cfg *.xml Which of the following is the penetration tester trying to enumerate?
Options
- AConfiguration files
- BPermissions
- CVirtual hosts
- DSecrets
Explanation
The findstr /SIM /C:"pass” *.txt *.cfg *.xml command searches for the keyword "pass" recursively across .txt, .cfg, and .xml files on the system. This is a common penetration testing technique used to locate hardcoded credentials, API keys, or plaintext passwords stored in configuration or log files. These secrets can then be used for privilege escalation or lateral movement. findstr is a Windows command for searching files. /S searches in all subdirectories. is case-insensitive search. /M displays only filenames that contain a match. searches for the exact word "pass" (could match "password", "passphrase", etc.). *.txt *.cfg *.xml searches in common plaintext configuration file formats.
Topics
Community Discussion
No community discussion yet for this question.