Python script that performs email address validation against Office 365 without submitting login attempts.

LMGsec LMGsec Last update: Mar 19, 2024

Description

This is a simple Python script used to validate email accounts that belong to Office 365 tenants. 
This script takes either a single email address or a list of email addresses as input, 
sends a request to Office 365 without a password, and looksfor the the "IfExistsResult"
parameter to be set to 0 for a valid account. Invalid accounts will return a 1.

Usage

This script depends on the Python "Requests" library. The script can take a single email address
with the -e parameter or a list of email addresses, one per line, with the -f parameter. 
Additionally, the script can output valid email addressesto a file with the -o parameter.

Examples:
o365creeper.py -e [email protected]
o365creeper.py -f emails.txt
o365creeper.py -f emails.txt -o validemails.txt

NOTE

Office 365 will flag these requests randomly after repeated, successive attempts to validate the 
same email address which may generate false positives such as invalid email addresses showing as 
valid. This is denoted by the "ThrottleStatus" parameter being set to 1 in the server's response. 
This tool is best used with a list of unique email addresses.

This tool is offered with no warranty and is to be used at your own risk and discretion.
Tags:

Subscribe to our newsletter