> For the complete documentation index, see [llms.txt](https://ceh-practical.cavementech.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://ceh-practical.cavementech.com/module-4.-enumeration/1.-netbios-enumeration-port-137.md).

# 1. Netbios Enumeration (Port 137)

used for file and printer sharing. port 137. Netbios name 16 characters. 15 chars define name and 16th character type of service. Port 137 is utilized by the NetBIOS Name service.

NetBIOS stands for Network Basic Input Output System. Windows uses NetBIOS for file and printer sharing. A NetBIOS name is a unique computer name assigned to Windows systems, comprising a 16-character ASCII string that identifies the network device over TCP/IP. The first 15 characters are used for the device name, and the 16th is reserved for the service or name record type.

{% embed url="<https://learn.microsoft.com/en-us/windows-server/administration/windows-commands/nbtstat>" %}

{% hint style="info" %}
Port **139** is used by **SMB** dialects that communicate over NetBIOS.

Port **137** is utilized by the **NetBIOS Name service**.&#x20;
{% endhint %}

## 1. Perform Netbios enumeration with windows command line

check the name

```
nbtstat -a 192.168.18.110
```

<figure><img src="https://2218819509-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FrUBnODuUX4EQ8P27uc5D%2Fuploads%2FvWmWmhXqPeZ2Qq1l7UVp%2Fimage.png?alt=media&amp;token=5583881d-785b-4da8-9413-ee6aba0b9e21" alt=""><figcaption></figcaption></figure>

check the contents of Netbios cache

```
nbtstat -c
```

<figure><img src="https://2218819509-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FrUBnODuUX4EQ8P27uc5D%2Fuploads%2FDN7klCEMp14Pk50f88FV%2Fimage.png?alt=media&amp;token=de2215e5-543c-44d3-9447-f0182dfad7ba" alt=""><figcaption></figcaption></figure>

enumerate shares without creating share

```
net use
```

<figure><img src="https://2218819509-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FrUBnODuUX4EQ8P27uc5D%2Fuploads%2FfZPEYRiULjOpSDcJceV8%2Fimage.png?alt=media&amp;token=1bd36ba5-ba28-418a-a82e-ef4be96ab4a8" alt=""><figcaption></figcaption></figure>

## <mark style="color:red;">2. Netbios enumerator</mark>

Windows application

{% embed url="<https://nbtenum.sourceforge.net/>" %}

<figure><img src="https://2218819509-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FrUBnODuUX4EQ8P27uc5D%2Fuploads%2F2C17G7AWQSaRdUoDtXto%2Fimage.png?alt=media&amp;token=e75df5a3-8616-4a62-827c-c51131b86da3" alt=""><figcaption></figcaption></figure>

## <mark style="color:red;">3. Netbios enumeration with NSE scripts</mark>

```
nmap -sV -v --script nbstat.nse 192.168.18.110
```

<figure><img src="https://2218819509-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FrUBnODuUX4EQ8P27uc5D%2Fuploads%2FC9kNhCcVsRMOFn761SzU%2Fimage.png?alt=media&amp;token=b548cbfb-d5e6-4344-a2f6-82614dbf7e08" alt=""><figcaption></figcaption></figure>

```
nmap -sU -p 137 --script nbstat.nse 192.168.18.110
```

{% embed url="<https://www.udemy.com/course/ethical-hacker-practical/?referralCode=289CF01CF51246BCAD6C>" %}
