impacket-smbserver
creates an SMB server to share files
TLDR
Start SMB server sharing current directory
$ impacket-smbserver [sharename] .
Share specific directory$ impacket-smbserver [sharename] [/path/to/share]
Use SMB2 protocol$ impacket-smbserver -smb2support [sharename] [path]
Require authentication$ impacket-smbserver -username [user] -password [pass] [sharename] [path]
Specify IP to bind$ impacket-smbserver -ip [0.0.0.0] [sharename] [path]
SYNOPSIS
impacket-smbserver [options] sharename path
DESCRIPTION
impacket-smbserver creates an SMB server to share files. Part of the Impacket toolkit. Useful for transferring files to/from Windows systems during penetration testing. Supports SMB1 and SMB2 protocols and optional authentication.
PARAMETERS
-smb2support
Enable SMB2 protocol support.-username user
Require username for auth.-password pass
Require password for auth.-ip address
IP address to bind.-port port
Port to listen on (default 445).
SEE ALSO
samba(1), impacket-smbclient(1)
