Skip to content

Comments

Multi threaded token generation#7

Open
RedByte1337 wants to merge 3 commits intorvrsh3ll:mainfrom
RedByte1337:main
Open

Multi threaded token generation#7
RedByte1337 wants to merge 3 commits intorvrsh3ll:mainfrom
RedByte1337:main

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