Skip to main content
SMB (Server Message Blocks) / CIFS (Common Internet File System) is a client-server protocol for shared access to files, printers, and other network resources. Port 445 is SMB over IP; Port 139 is NetBIOS over TCP.

Server Enumeration

Null Session Enumeration

Authenticated Enumeration

RPC Enumeration

Share Operations

Common Windows Share Names

Enumerate Users via Lookupsid / RID Brute Force

Kerberos Authentication

Command Execution

SAM and LSASS Dumping

SYSVOL Share Exploitation

The SYSVOL share is readable by all authenticated domain users. It often contains batch, VBScript, and PowerShell scripts with credentials. If writable, you can poison logon scripts for RCE at user logon.

SMB Relay Attack

NTLM Theft

ShareHound (BloodHound SMB Collector)

SMB Version Vulnerabilities

Post-Exploitation: Samba Config

Dangerous Samba settings:
  • guest ok = yes — allow unauthenticated access
  • writable = yes + create mask = 0777 — world-writable shares
  • logon script = script.sh — execute scripts on login