Skip to content

Latest commit

 

History

History
39 lines (31 loc) · 550 Bytes

smb.md

File metadata and controls

39 lines (31 loc) · 550 Bytes

Linux

List shares

smbclient -L <ip>

Connect to remote share

URI

smbclient //<ip>/<share>

Using Administrator

smbclient -U Administrator \\\\10.129.67.254\\C$

Samba share enumerator

smbmap -u guest -d workgroup -H <ip>

Execute commands over SMB

smbmap -u '<user>' -p '<password>' -H <ip> -x 'command "path" <options>'

Recursively download a file share

smbget --user=guest -R smb://<ip>/<share>/

Windows

List shares

net view \\<ip> /all