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 PT0-003 Exam - Topic 2 Question 39 Discussion

Posted by Markus on Jun 18, 2026 at 01:28 AM

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?

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.


Get Premium PT0-003 Questions as Interactive Web-Based Practice Test or PDF Real Exam Format Detailed Explanations Instant Access Get Your Practice Test
12 comments · newest first
AN
Anjelica 2 months ago
Option B is solid too. System info and user context are important.
MA
Marisha 2 months ago
I prefer option D. It gives process info and home directories.
JA
Javier 2 months ago
I think option A is the best. It covers user info and network services.
CH
Chuck 2 months ago
Surprised that A isn't the obvious choice!
CO
Colette 2 months ago
Wait, why would you use curl for local info?
ME
Melda 2 months ago
D seems solid too, especially with lsof.
TR
Tresa 3 months ago
I think B is better for system details.
AM
Amos 3 months ago
Option A gives a lot of user and network info.
CA
Callie 3 months ago
I recall that uname -a is important for system info, but I’m not sure if it’s enough on its own. I guess I’d lean towards A for the most coverage.
TI
Timmy 3 months ago
I’m a bit confused about the differences between these options. I feel like B has some good commands, but it might not be as comprehensive as A or D.
SY
Sylvia 3 months ago
I think option D might be the best because it includes lsof, which shows open files and network connections. That could be really useful for enumeration.
LA
Lashawna 4 months ago
I remember we practiced something similar in class, but I’m not sure which option gives the most info. Maybe A? It seems to cover a lot of system details.
0/2000 characters

Save Cancel