Q: 8
[Information Gathering and Vulnerability Scanning] A penetration tester is enumerating a Linux system. The goal is to modify the following script to provide more comprehensive system information:
#!/bin/bash ps aux >> linux_enum.txt
Which of the following lines would provide the most comprehensive enumeration of the system?
Options
Discussion
I don’t think it’s D. A covers users, network, and config-D skips user enumeration which is key here.
Its A. cat /etc/passwd grabs user info, netstat -tuln shows open ports, and /etc/bash.bashrc reveals env configs. The other options are useful but don't hit as many categories. Pretty sure that's what they're looking for here.
Would the answer change if the goal was to focus just on active network connections instead of overall system enumeration? That’d probably make D a better pick over A, right?
Be respectful. No spam.