# SMBSpray

## About

SMB Password Sprayer

Three log files get written to the current directory when ran:

* `spray_logs.txt` - log of all attempts with timestamps
* `valid_creds.txt` - valid credentials
* `attempted_pws.txt` - passwords attempted

### Links

[Github](https://github.com/absolomb/smbspray)

## Usage

```
python3 smbspray.py -u users.txt -p passwords.txt -ip DC-IP
```

By default smbspray will attempt one password every 30 minutes, this can be tuned with the `-l` option for how often you want to spray and also `-a` for how many attempts per period you want to try. So if you want to do 5 attempts every 15 minutes do `-l 15 -a 5`. To be extra safe in case you mess this up, there is an prompt to confirm before proceeding.

```
python3 smbspray.py -u users.txt -p passwords.txt -ip DC-IP -l 15 -a 5
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://cybersec.th4ntis.com/tools/smbspray.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
