> For the complete documentation index, see [llms.txt](https://ad-lab.gitbook.io/building-a-windows-ad-lab/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://ad-lab.gitbook.io/building-a-windows-ad-lab/vulnerabilities-and-misconfigurations-and-attacks/initial-access-attacks/page-3.md).

# SMB Null-Session (To-Do)

## Configuring

**Hmm doesn't seem to work on W10.**

1. Login with the user `Administrator` and the password `Welcome01!` on `WS01`.
2. Open "Windows Explorer" and create a directory with the name `Public` in `C:\`.

<div align="left"><figure><img src="https://1033393870-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FPqGbN7FCY7Xh4OkOtvin%2Fuploads%2FJWUnW6aBe4iOT8pnbg5o%2Fimage.png?alt=media&amp;token=ff1582cb-187f-402a-8464-115fb3d6e6a0" alt=""><figcaption></figcaption></figure></div>

3\. Right click the directory and select "Properties" and then open the "Sharing" tab.

<div align="left"><figure><img src="https://1033393870-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FPqGbN7FCY7Xh4OkOtvin%2Fuploads%2FpyXg7nOsP0wACwbcsewL%2Fimage.png?alt=media&amp;token=71b1525e-b553-4372-b5ab-74776ccd8d78" alt=""><figcaption></figcaption></figure></div>

4\. Click on "Advanced Sharing". Select "Share this folder" and then click on "Permissions".

<div align="left"><figure><img src="https://1033393870-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FPqGbN7FCY7Xh4OkOtvin%2Fuploads%2F6s7Pf9KKq86pHWy1XShD%2Fimage.png?alt=media&amp;token=585b3f9a-2141-460e-83c8-0afdcfa06ab8" alt=""><figcaption></figcaption></figure></div>

5\. Click on "Add" and add `ANONYMOUS LOGON` and then give it full permissions. Do the same for the everyone group.

<div align="left"><figure><img src="https://1033393870-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FPqGbN7FCY7Xh4OkOtvin%2Fuploads%2FJ8drZp2LwCeKJuBMvm9Z%2Fimage.png?alt=media&amp;token=b37d8c99-c33c-4d61-86af-b2b42da5ea4f" alt=""><figcaption></figcaption></figure></div>

6\. Click "Apply" and "OK" on all Windows.

## Attacking

### How it works

### Tools

### Executing the attack

## Defending

### Recommendations

* a

### Detection

## References
