Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Revamped Invoke-MSOLSpray #2

Open
wants to merge 10 commits into
base: master
Choose a base branch
from
Open

Conversation

justin-p
Copy link

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.

Rebuild authentication and return code/ErrorReponse logic.
Dynamically parses the error code and message from ErrorResponse.
Rebuild lockout menu logic.
Added PowerShell Object based output.
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 CBH to reflect changes.
Added Write-Progress support to replace  write-host/write-output
Moved lockout_threshold to Param block.
Updated Progress bars, verbose messages and content of the output file.
Updated CBH to reflect changes to the timestamp format
Updates examples to reflect changes to the timestamp format.
@Flangvik
Copy link

Flangvik commented Dec 9, 2020

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

Copy link

@austinzwile austinzwile left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Excellent modifications.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants