Skip to content

A small script to resolve domains to Azure AD tenants (and OAuth login portals)

License

Notifications You must be signed in to change notification settings

axylisdead/TenantHunter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

TenantHunter

image

Description

TenantHunter is a small script to resolve domains to Azure AD tenants (and OAuth login portals) It is incredibly useful for pentesting companies or governments powered by the Azure ecosystem

Features:

  • Resolves domain to tenant ID
  • Resolves tenant ID to OAuth login portal
  • More upcoming features but for now that's it

Requirements

Python 3
requests
argparse
sys
termcolor
re
pyfiglet

You can install all of the dependencies by cloning the repository and running: pip install -r requirements.txt

Usage

Run normally: python3 tenanthunter.py -t example.com
Run in minimised mode (excludes full response): python3 tenanthunter.py -mt example.com

Arguments

  • -t or --domain | Specifies the domain to find the tenant ID of
  • -m or --minimal | Tells the script to run in minimal mode (excludes full response)

To Do

  • Subdomain enumeration (Use crt.sh to find subdomains for the TLD and enumerate all of those to tenant IDs too)
  • Save to file (Saves the results to a file)

Disclaimer

This is to be used for educational purposes only blah blah (insert boilerplate shite here)

License

This code was proudly written and published under the +NIGGER license, a modified version of Daddy Stallmans GPL v3 license

Credits

All work was done by me, Lodzie Kotekya. You can find me on Telegram