Octoberfest7 / TeamsPhisher

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

Skip looping over users alltogether? #17

Open gg-g opened 1 year ago

gg-g commented 1 year ago

https://github.com/Octoberfest7/TeamsPhisher/blob/4e34fce51c0f428ef642365e9eceec5c3cd0d82d/teamsphisher.py#L208

I think you can skip the whole looping over users (lines 208-230):

url = f"https://teams.microsoft.com/api/mt/emea/beta/users/{userID}" response = requests.get(url, headers=headers) senderInfo = json.loads(response.text)['value']