CtrlK

Pentest Notes / Services

SMB (445)

Server Message Block Protocol: Client-server communication protocol used for sharing access to files, printers, serial ports and other resources on a network.

Enumeration

Enum4linux
enum4linux [options] ip

OptionDescription
-Uget userlist
-Mget machine list
-Nget namelist dump (different from -U and-M)
-Sget sharelist
-Pget password policy information
-Gget group and member list
-aall of the above (full basic enumeration)

Nmap Script

smb-os-discovery.nse

List available shares

smbclient -L //[MACHINE_IP]
Custom share: Does not have $
Without password: -N suppresses the password prompt
smbclient -N -L //[MACHINE_IP]

Connect to a share

smbclient //[MACHINE_IP]/[share_name] -U [username]
Anonymous login: -U%
Password login: -U username%password

Transfer files from share to system

get [filename]