GIAC Penetration Tester (GPEN) — Question 43
You are pen testing a Windows system remotely via a raw netcat shell. You want to get a listing of all the local users in the administrators group, what command would you use?
Answer options
- A. Net account administrators
- B. Net user administrators
- C. Net localgroup administrators
- D. Net localuser administrators
Correct answer: C
Explanation
The correct command is 'Net localgroup administrators' because it specifically lists the members of the local administrators group on a Windows system. The other options either reference incorrect commands or do not accurately target the local group of administrators.