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
| Option | Description |
|---|---|
| -U | get userlist |
| -M | get machine list |
| -N | get namelist dump (different from -U and-M) |
| -S | get sharelist |
| -P | get password policy information |
| -G | get group and member list |
| -a | all 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]