MSOLSpray icon indicating copy to clipboard operation
MSOLSpray copied to clipboard

Revamped Invoke-MSOLSpray

Open justin-p opened this issue 5 years ago • 1 comments
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.

justin-p avatar Aug 15 '20 00:08 justin-p

This looks awesome, really hope this get's approved! :)

Flangvik avatar Dec 09 '20 21:12 Flangvik