MSOLSpray
MSOLSpray copied to clipboard
Revamped Invoke-MSOLSpray
trafficstars
Hi Beau,
I did some work on this function. Changelog below. Lemme know what you think of these changes.
- Rebuild authentication and return code/ErrorReponse logic.
- Dynamically parses the error code and message from ErrorResponse.
- Rebuild lockout menu logic.
- Replaced the 'plain' output by a PowerShell Object.
- Added Pipeline support.
- Added support for single and multiple Usernames, Passwords, UsersLists and PasswordLists. Can all be mixed and matched.
- Added logic to ensure only files are loaded that exist.
- Added logic to ensure only unique usernames/passwords are used.
- Added logic to ensure specified url is valid.
- Added Delay support to wait between logon requests.
- Added Support for custom UserAgent. By default uses a helper function to randomly generate one using [Microsoft.PowerShell.Commands.PSUserAgent].
- Added IgnoreSSL switch.
- Added a Timestamp for each individual login request.
- Added Write-Progress to replace Write-Host/Write-Output for the current status of the spray.
- Moved lockout_threshold to Param block.
- Updated CBH to reflect changes.
This looks awesome, really hope this get's approved! :)