Skip to content

Conversation

rotarydrone
Copy link

I should have just consolidated this and the previous PR 😆

Introduces alternative method to device code flow for obtaining tokens. Given an ESTSAuth or ESTSAuthPersistent cookie, obtained via AitM phishing or other cookie theft methods, we can use the Authorization Code flow to get a refresh token ("code") for a FOCI application (by default: Teams).

This exchange method was implemented using Selenium in roadtx; I have not yet encountered a scenario where user interaction is actually required if a valid cookie is presented and it seems to work just fine using Invoke-RestMethod/invoke-WebRequest calls.

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