Skip to content

Conversation

@joswr1ght
Copy link

When spraying, MSOLSpray uses a Write-Host without a trailing LF to show incremental progress N of NNN users tested. Then the spray completes, there it no additional LF, so the prompt often looks like this:

PS /home/josh> Invoke-MSOLSpray -UserList ./userlist.txt -Password "Solarwinds123"
[*] There are 1 total users to spray.
[*] Now spraying Microsoft Online.
[*] Current date and time: 04/11/2022 10:53:45
PS /home/josh> sted

The sted is the trailing output of the status indicator. This patch adds a newline to the end of the main ForEach loop. The output at the end of MSOLSpray will look like this:

PS /home/josh> Invoke-MSOLSpray -UserList ./userlist.txt -Password "Solarwinds123"
[*] There are 1 total users to spray.
[*] Now spraying Microsoft Online.
[*] Current date and time: 04/11/2022 10:53:45
200 of 200 users tested
PS /home/josh> 

NBD, just a minor nicety. Thanks!

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.

1 participant