nerdexam
GIAC

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.

Reconnaissance, Scanning, and Enumeration

Question

Which command produced the following output?

Exhibit

GCIH question #840 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)
  • A
    3% (1)
  • B
    93% (27)
  • D
    3% (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.

Anet session \\10.0.0.5

'net session' displays or manages active inbound sessions to the local machine from remote clients, not the shared resources available on a remote host.

Bnet view\\10.0.0.5Correct

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.

Cnet use\\10.0.0.5

'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.

Dnet share \\10.0.0.5

'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

#net view#Windows enumeration#SMB shares#network reconnaissance

Community Discussion

No community discussion yet for this question.

Full GCIH Practice