LinuxCommandLibrary

impacket-smbserver

creates an SMB server to share files

TLDR

Start SMB server sharing current directory

$ impacket-smbserver [sharename] .
copy
Share specific directory
$ impacket-smbserver [sharename] [/path/to/share]
copy
Use SMB2 protocol
$ impacket-smbserver -smb2support [sharename] [path]
copy
Require authentication
$ impacket-smbserver -username [user] -password [pass] [sharename] [path]
copy
Specify IP to bind
$ impacket-smbserver -ip [0.0.0.0] [sharename] [path]
copy

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

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community