PT0-003 · Question #301
A penetration tester is conducting an IoT assessment and dumps the device firmware to a Linux machine. Which of the following Bash scripts would locate secrets in a custom binary executable…
The correct answer is A. cat initializedevice | strings | grep -i "password\|shadow\|token". A binary executable can contain embedded human-readable strings (including hardcoded credentials, tokens, or references to sensitive files). Extracting printable strings first and then grepping for common secret indicators is the appropriate approach for locating potential…
Question
A penetration tester is conducting an IoT assessment and dumps the device firmware to a Linux machine. Which of the following Bash scripts would locate secrets in a custom binary executable downloaded from the device?
Options
- Acat initializedevice | strings | grep -i "password|shadow|token"
- Ccat initializedevice | base64 -d | grep -i "password|shadow|token"
- Dcat initializedevice | grep -i "password|shadow|token"
How the community answered
(20 responses)- A70% (14)
- C20% (4)
- D10% (2)
Explanation
A binary executable can contain embedded human-readable strings (including hardcoded credentials, tokens, or references to sensitive files). Extracting printable strings first and then grepping for common secret indicators is the appropriate approach for locating potential secrets within a custom binary.
Topics
Community Discussion
No community discussion yet for this question.