Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

CompTIA Exam PT0-003 Topic 2 Question 24 Discussion

Actual exam question for CompTIA's PT0-003 exam
Question #: 24
Topic #: 2
[All PT0-003 Questions]

[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?

Show Suggested Answer Hide Answer
Suggested Answer: A

This command gathers:

/etc/passwd -- lists all local user accounts.

netstat -tuln -- lists listening ports and associated services.

/etc/bash.bashrc -- contains environment variables and configurations that could reveal system behaviors or hidden persistence mechanisms.

This provides a much broader and deeper enumeration compared to other options.


Contribute your Thoughts:

Wava
8 days ago
Option A all the way! Who doesn't love a good old-fashioned /etc/passwd dump? It's like getting the keys to the kingdom.
upvoted 0 times
...
Daniela
11 days ago
Hmm, I'm not sure. Maybe B? Checking the current user, system info, and network config could be helpful. Though, I do like the sound of 'curl ifconfig.me' in option C.
upvoted 0 times
...
William
12 days ago
Hmm, I see your point. Option D does include more detailed commands for system enumeration.
upvoted 0 times
...
Juliann
16 days ago
Wait, is this a trick question? I feel like the answer is going to be something really obscure, like 'dd if=/dev/urandom of=linux_enum.txt'.
upvoted 0 times
Dick
12 days ago
User 1: I think the answer is B) whoami >> linux_enum.txt; uname -a >> linux_enum.txt; ifconfig >> linux_enum.txt
upvoted 0 times
...
...
Kizzy
20 days ago
I disagree, I believe option D would give a better enumeration of the system.
upvoted 0 times
...
Harley
28 days ago
Option A looks the most comprehensive to me. Grabbing the password file, network connections, and bash configuration should give a good overview of the system.
upvoted 0 times
Lazaro
3 days ago
User 2: Yeah, I agree. It's important to gather as much data as possible during enumeration.
upvoted 0 times
...
Alfreda
14 days ago
User 1: I think Option A is the best choice. It covers a lot of important system information.
upvoted 0 times
...
...
William
1 months ago
I think option B would provide the most comprehensive system information.
upvoted 0 times
...

Save Cancel