# Windows Shares

### Netbios

Network Basic Input Output System. It can supply name for

* Hostname
* NetBIOS name
* Domain
* Network Shares

#### Features

It uses 3 ports

1. TCP 139
   1. Used to transmit data
2. Udp Port 138
   1. Used for NetBIOS Datagrams
   2. Datagrams are used to list shares and the machines
3. Udp Port 137
   1. Used for NetBIOS Names
   2. Names are used to find workgroups

***

### UNC Paths

UNC stands for Universal Naming Convention Paths. An authorized user can access shares by using UNC. Its format is

```
\\ServerName\ShareName\File.dat
```

***

### Administrative Shares

They are used by system admins and windows itself

1. `\\ComputerName\C$`
   1. Lets an admin access a volume on the machine.
   2. Every volume has a share e.g 'D$, E$ etc'
2. `\\ComputerName\admin$`
   1. Points to windows install directory
3. `\\ComputerName\ipc$`
   1. Used for inter process communication
   2. It can not be browsed via windows explorer

***


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://notes.nomanaziz.me/cybersecurity/penetration-testing/elearnsecurity/ejpt/network-attacks/windows-shares.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
