githubEdit

Server Message Block (SMB)

Port: 445, 139 (NetBIOS)

Enumeration: Hostname

1) nmblookup

nmblookup -A IP

Useful information:

For unique names:

00: Workstation Service (workstation name) 03: Windows Messenger service 06: Remote Access Service 20: File Service (also called Host Record) 21: Remote Access Service client 1B: Domain Master Browser – Primary Domain Controller for a domain 1D: Master Browser

For group names:

00: Workstation Service (workgroup/domain name) 1C: Domain Controllers for a domain 1E: Browser Service Elec􀆟ons

2) Nbtscan

nbtscan IP

3) Nmap

sudo nmap --script nbtstat.nse IP
sudo nmap --script smb-os-discovery 192.168.1.17

4) Nbtstat

nbtstat -A IP

5) Ping

Enumeration: Share and Null Session

1) Smbmap

2) Smbclient

Authenticated enumeration

Download all files within the share

OR

3) Nmap

4) Net view (Windows)

5) Metasploit

6) Netexec

7) Rpcclient

Enumeration: Users

1) Metasploit

2) Impacket Lookupsid

Extra: Enum4linux-ng

Network Packet Analysis

Mounting Shares

Last updated