GCIH · Question #840
Which command produced the following output?
The correct answer is B. net view\\10.0.0.5. The 'net view' command is used to display a list of shared resources (folders, printers) available on a specified remote host, making it the command that produces output listing shares on a target machine.
Question
Which command produced the following output?
Exhibit
Options
- Anet session \10.0.0.5
- Bnet view\10.0.0.5
- Cnet use\10.0.0.5
- Dnet share \10.0.0.5
How the community answered
(29 responses)- A3% (1)
- B93% (27)
- D3% (1)
Why each option
The 'net view' command is used to display a list of shared resources (folders, printers) available on a specified remote host, making it the command that produces output listing shares on a target machine.
'net session' displays or manages active inbound sessions to the local machine from remote clients, not the shared resources available on a remote host.
The 'net view \\<host>' command queries the specified remote computer over SMB and returns a list of its shared resources including share names, types (Disk, Print, etc.), and comments. This is a standard Windows reconnaissance technique used to identify accessible network shares on a target host.
'net use' is used to connect, disconnect, or display the status of mapped network drive connections - it manages drive mappings rather than listing remote shares.
'net share' displays or manages shares exported by the LOCAL machine and requires no remote host argument to show local shares, so it would not query a remote host like 10.0.0.5.
Concept tested: Windows net view command for SMB 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.
