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

Multi threaded token generation #7

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

RedByte1337
Copy link

Added the Get-AzureTokenMulti command to allow multiple tokens to be generated and monitored at once.
Specifying the -Count flag will request $Count amount of Device Codes and start a thread for each code to periodically check its status.
Alternatively, the -InputFile argument can be used to pass a file with email addresses or names (1 per line). For each line, a device code will be requested and appended into the $CodeFile (DeviceCodes.csv by default) for easy use in bigger phishing campaigns with multiple targets.

If a user authenticates, the responses can be accessed using the global $responses array. (e.g. $responses[0].access_token to get the access token of the first response...)
The status of the codes is still shown every 5 seconds.

Note: be careful when going over 50 codes as you might start experiencing some throttling from Microsoft.

@rvrsh3ll
Copy link
Owner

Thank you, testing this soon.

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.

2 participants