nerdexam
GIAC

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.

Reconnaissance, Scanning, and Enumeration

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)
  • A
    8% (2)
  • B
    88% (21)
  • C
    4% (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.

Anet share \\192.168.99.133

The 'net share' command creates, modifies, or displays shares on the local machine only, not on a remote target.

Bnet view \\192.168.99.133Correct

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.

Cnet use \\192.168.99.133

The 'net use' command maps a drive letter or connects to a specific known share path and does not enumerate available shares.

Dnet session \\192.168.99.133

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

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

Community Discussion

No community discussion yet for this question.

Full GCIH Practice