ToolsFebruary 9, 20261 min readby 0xt0pus

smbclient

SMB client for accessing and interacting with Windows file shares from Linux


Smbclient

Description

Smbclient is used for SMB enumeration and accessing SMB shares. It can list shares, connect to specific shares, and transfer files. It is commonly used during Windows penetration testing.

Usage 1: Check NULL Session (No Authentication)

List shares without credentials.

Command:

smbclient -L \\\\10.10.10.1 -N

Usage 2: List Shares with Authentication

Command:

smbclient -L \\\\10.10.10.1 -U UserName

Usage 3: Connect to a Specific Share

Command:

smbclient \\\\10.10.10.10\\Share$ -U Username

Usage 4: Connect Without Password (Null Session)

Command:

smbclient //10.2.3.4/Public -N

Usage 5: Connect via Proxychains

Command:

proxychains smbclient -L //172.16.50.217/ -U hr_admin --password=Welcome1234