GCIH · Question #665
Which of the following commands will enumerate a list of shares on a Windows target machine?
The correct answer is B. net view \\192.168.99.133. The 'net view' command queries a remote Windows machine and returns a list of all shared resources it is advertising on the network.
Question
Which of the following commands will enumerate a list of shares on a Windows target machine?
Options
- Anet share \192.168.99.133
- Bnet view \192.168.99.133
- Cnet use \192.168.99.133
- Dnet session \192.168.99.133
How the community answered
(24 responses)- A8% (2)
- B88% (21)
- C4% (1)
Why each option
The 'net view' command queries a remote Windows machine and returns a list of all shared resources it is advertising on the network.
The 'net share' command creates, modifies, or displays shares on the local machine only, not on a remote target.
Running 'net view \\192.168.99.133' sends a query to the target host and displays every shared directory and printer it is making available over SMB. This is a native Windows enumeration command commonly used during network reconnaissance and penetration testing to discover accessible shares without requiring any additional tools. No credentials are required to run this command when null sessions or guest access are permitted.
The 'net use' command maps a drive letter or connects to a specific known share path and does not enumerate available shares.
The 'net session' command manages and displays active connections from remote clients to the local machine and does not list shares on a remote target.
Concept tested: Windows net view command for remote share enumeration
Source: https://learn.microsoft.com/en-us/windows-server/administration/windows-commands/net-view
Topics
Community Discussion
No community discussion yet for this question.