#
smbserver.py
smbserver is part of impacket.
#
Setup a listening server
Make an empty directory to serve nothing out of
sudo mkdir /share
(Just an example, doesn't have to be this)
#
Setup an SMB share pointed to the /share folder
#
Setup an SMB share that uses username and password
(This is handy when your victim server you're trying to copy files to throws a warning like "You can't access this shared folder because your organization's security policies block unauthenticated access"):