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

A penetration tester is enumerating a Linux system. The goal is to modify the following script to provide more comprehensive system information:#!/bin/bashps aux >> linux_enum.txtWhich of the following lines would provide the most comprehensive enumeration of the system?
A) cat /etc/passwd >> linux_enum.txt; netstat -tuln >> linux_enum.txt; cat /etc/bash.bashrc >> linux_enum.txt
B) whoami >> linux_enum.txt; uname -a >> linux_enum.txt; ifconfig >> linux_enum.txt
C) hostname >> linux_enum.txt; echo $USER >> linux_enum.txt; curl ifconfig.me >> linux_enum.txt
D) lsof -i >> linux_enum.txt; uname -a >> linux_enum.txt; ls /home/ >> linux_enum.txt

CompTIA PT0-003 Exam - Topic 2 Question 39 Discussion

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

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:

0/2000 characters
Melda
2 days ago
D seems solid too, especially with lsof.
upvoted 0 times
...
Tresa
7 days ago
I think B is better for system details.
upvoted 0 times
...
Amos
12 days ago
Option A gives a lot of user and network info.
upvoted 0 times
...
Callie
17 days 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.
upvoted 0 times
...
Timmy
22 days 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.
upvoted 0 times
...
Sylvia
28 days 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.
upvoted 0 times
...
Lashawna
1 month 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.
upvoted 0 times
...

Save Cancel