Octoberfest7 / TeamsPhisher

Send phishing messages and attachments to Microsoft Teams users
998 stars 129 forks source link

Input parameter 'scope' is not valid #2

Closed blockanz closed 1 year ago

blockanz commented 1 year ago

When running the tool, I can successfully authenticate my device, however when the tool gathers the SharePoint bearer token it seems to be adding in a space between the first part of the URL. i.e. my domain is fredbloggs.com, and when getting the token the error shows https://fred bloggs-my.sharepoint.com

Not sure what is causing this though. Any ideas?

Octoberfest7 commented 1 year ago

Kind of sounds like the same issue seen here: https://github.com/Octoberfest7/TeamsPhisher/issues/1

The sharepoint address is assembled by taking the "tenantName" field that is queried for your user; I'm guessing that you named your tenant "fred bloggs", but the domain name is "fredbloggs.com". Given you are the second person with this issue I'll make the change and push it up shortly

Octoberfest7 commented 1 year ago

pull the latest commit and then give it another shot

blockanz commented 1 year ago

Yes, that was the issue. Changed the tenant name and voila. I'll pull the latest commit and change the name back and see what happens.

Many thanks for the prompt response.