# dafthack/MSOLSpray

A password spraying tool for Microsoft Online accounts (Azure/O365). The script logs if a user cred is valid, if MFA is enabled on the account, if a tenant doesn't exist, if a user doesn't exist, if the account is locked, or if the account is disabled.

Repository: https://github.com/dafthack/MSOLSpray
Canonical: https://ross.abutalabs.com/products/msolspray
Language: PowerShell
License: MIT
License Family: permissive
Last push: 2024-03-19T11:03:06+00:00

## Health v2 (maintenance only)
Score: 32/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 0, release rhythm 35, longevity 100
- inputs: {"age_days": 2361, "days_push": 897, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1100, forks 186 (observed 2026-08-28T04:03:35.429073+00:00)

## What it is
MSOLSpray is a PowerShell-based password spraying tool for Microsoft Online (Azure AD/O365) accounts. It leverages Azure AD OAuth2 error codes to report valid credentials, MFA status, tenant/user existence, and account lockout or disabled states, doubling as a Microsoft Online recon tool.

## Use cases
- spray a single password against a list of O365 user accounts
- enumerate which Azure AD users exist in a tenant
- detect whether target accounts have MFA enabled
- find valid Microsoft Online credentials during authorized penetration tests
- rotate source IPs with FireProx to avoid Azure Smart Lockout
- identify locked or disabled accounts during a spray

## When to choose
- you need verbose Azure AD error-code feedback beyond just valid/invalid credentials
- you want a lightweight PowerShell tool with no dependencies for O365 password spraying
- you need account enumeration and MFA detection alongside spraying
- you plan to pair spraying with FireProx for IP rotation

## When to avoid
- you have no explicit authorization to test the target accounts
- you need multi-password spraying with complex password lists per user
- you need a cross-platform tool outside Windows PowerShell
- you want to avoid any risk of account lockouts on production tenants

## Facets
- artifact type: cli-tool
- maturity: stable
- function: security, penetration-testing, auth, cli
- domain: security, penetration-testing, cloud-computing
- platform: windows, cli
- tags: password-spraying, azure-ad, office365, red-team, account-enumeration, powershell

## Member repositories
- dafthack/MSOLSpray (main) score 32

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:03:35.429073+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T06:45:47.549395+00:00, confidence not recorded.
  - readme: https://github.com/dafthack/MSOLSpray (fetched 2026-08-28T04:03:35.429073+00:00, sha 91f60bfc35d6)
- Data as of 2026-08-30T08:39:29.467469+00:00.
