Code updated for compatibility with Entra ID#18
Open
socketz wants to merge 12 commits intodafthack:masterfrom
Open
Code updated for compatibility with Entra ID#18socketz wants to merge 12 commits intodafthack:masterfrom
socketz wants to merge 12 commits intodafthack:masterfrom
Conversation
Co-authored-by: socketz <638274+socketz@users.noreply.github.com>
Co-authored-by: socketz <638274+socketz@users.noreply.github.com>
Co-authored-by: socketz <638274+socketz@users.noreply.github.com>
… logic Co-authored-by: socketz <638274+socketz@users.noreply.github.com>
…ovements Modernize MSOLSpray for Microsoft Entra ID with enhanced error handling and rate limiting
…nvalid passwords Co-authored-by: socketz <638274+socketz@users.noreply.github.com>
Co-authored-by: socketz <638274+socketz@users.noreply.github.com>
Co-authored-by: socketz <638274+socketz@users.noreply.github.com>
…quests Integrate upstream PRs: Add TenantID parameter and improve MFA detection
There was a problem hiding this comment.
Pull Request Overview
This PR modernizes the MSOLSpray tool by updating terminology from "Azure AD" to "Microsoft Entra ID" (reflecting Microsoft's rebranding), adding new functionality for better control over password spraying operations, and expanding error code handling for more comprehensive reconnaissance capabilities.
Key changes:
- Adds three new parameters:
TenantId(for targeting specific tenants),Delay(for rate limiting), andVerboseErrors(for troubleshooting) - Implements input validation for required parameters and file existence
- Expands error code handling to cover 8 additional scenarios (AADSTS50056, AADSTS50173, AADSTS53003, AADSTS50072, AADSTS50074, AADSTS700016, AADSTS90019, AADSTS81018)
- Separates AADSTS50079 from AADSTS50076 for more precise MFA state detection
Reviewed Changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| README.md | Updates terminology to Microsoft Entra ID and documents the three new parameters (TenantId, Delay, VerboseErrors) |
| MSOLSpray.ps1 | Implements new parameters, adds comprehensive input validation, expands error handling with 8 new error codes, updates authentication endpoint to use TenantId variable, adds delay logic between requests, and updates documentation URLs |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request updates
MSOLSprayto improve support for Microsoft Entra ID (formerly Azure AD), adds new usability features, and enhances error handling and reporting. The changes include rebranding references to Microsoft Entra ID, new parameters for targeting specific tenants, adding request delays, and more granular error output for troubleshooting.Rebranding and Documentation Updates:
MSOLSpray.ps1andREADME.mdfrom "Azure/O365" to "Microsoft Entra ID/Azure AD/O365" and clarified error code documentation links. [1] [2] [3] [4]New Features and Parameters:
TenantId,Delay, andVerboseErrorsparameters toInvoke-MSOLSpray, allowing users to target a specific tenant, control request pacing to avoid lockouts, and display detailed error output for troubleshooting. [1] [2] [3] [4]Input Validation and Usability Enhancements:
Expanded Error Handling:
Request Logic Improvements:
TenantIdin authentication requests and added support for delays between requests to help avoid rate limiting and Smart Lockout. [1] [2] [3]These updates make the tool more robust, user-friendly, and better aligned with current Microsoft identity terminology and practices.
This pull request probably fixes all the pending issues and previous pull requests not approved yet.