CompTIA PenTest+ PT0-002 Practice Question
During active reconnaissance, which of the following commands would allow a penetration tester to list users in a Windows domain environment?
net accounts
net user /domain
ls
whoami
id
netstat -an
During active reconnaissance, which of the following commands would allow a penetration tester to list users in a Windows domain environment?
net accounts
net user /domain
ls
whoami
id
netstat -an
The correct answer is 'net user /domain'. This command fetches user account details from the domain controller, which is a common task in active reconnaissance when targeting Windows domains. 'netstat -an' is used to display network connections, 'net accounts' shows the password policy for the local machine, 'whoami' outputs the current user context, 'ls' lists the content of a directory in Linux/Unix systems, and 'id' prints user identity in Linux/Unix.
Bash is our AI bot, trained to help you pass your exam. AI Generated Content may display inaccurate information, always double-check anything important.
All Information Technology Package plans include the following perks and exams.
Our pricing is simple. Full access to all certifications and exams in each package, for one price.
As many practice tests for as many topics as you want.
Use study mode non-stop, no limits.
Access to our AI assistant, Bash, trained to help you pass your exam.
Track your scores over time in study mode and report cards.
See how you improve over time, and where you need to focus.
Unlimited access to all performance questions and be prepared for the real thing.
All Information Technology Package plans include unlimited access to the following study materials.
Create an account or sign in to access our study materials.