Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/p0dalirius/findazuredomaintenant
A Python script to find tenant id an region from a list of domain names.
https://github.com/p0dalirius/findazuredomaintenant
azure bugbounty domain pentest tenant
Last synced: 12 days ago
JSON representation
A Python script to find tenant id an region from a list of domain names.
- Host: GitHub
- URL: https://github.com/p0dalirius/findazuredomaintenant
- Owner: p0dalirius
- Created: 2023-04-24T11:59:44.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-10-01T21:18:56.000Z (over 1 year ago)
- Last Synced: 2024-12-18T18:50:10.707Z (24 days ago)
- Topics: azure, bugbounty, domain, pentest, tenant
- Language: Python
- Homepage: https://podalirius.net/
- Size: 19.5 KB
- Stars: 12
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
Awesome Lists containing this project
README
![](./.github/banner.png)
A Python script to find tenant id and region from a list of domain names.
## Features
- [x] Find tenant id and region from a list of domain names.
- [x] Export results in JSON with `--export-json `.
- [x] Export results in XLSX with `--export-xlsx `.
- [x] Export results in SQLITE3 with `--export-sqlite `.## Usage
```
$ ./FindAzureDomainTenant.py -h
FindAzureDomainTenant.py v1.1 - by @podalirius_usage: FindAzureDomainTenant.py [-h] [-v] [--debug] [-T THREADS] [--no-colors] [-PI PROXY_IP] [-PP PROXY_PORT] [-rt REQUEST_TIMEOUT] [--export-xlsx EXPORT_XLSX] [--export-json EXPORT_JSON] [--export-sqlite EXPORT_SQLITE]
[-tf TENANTS_FILE] [-tt TENANT] [--stdin]options:
-h, --help show this help message and exit
-v, --verbose Verbose mode. (default: False)
--debug Debug mode, for huge verbosity. (default: False)
-T THREADS, --threads THREADS
Number of threads (default: 8)
--no-colors Disable colored output. (default: False)Advanced configuration:
-PI PROXY_IP, --proxy-ip PROXY_IP
Proxy IP.
-PP PROXY_PORT, --proxy-port PROXY_PORT
Proxy port.
-rt REQUEST_TIMEOUT, --request-timeout REQUEST_TIMEOUT
Set the timeout of HTTP requests.Export results:
--export-xlsx EXPORT_XLSX
Output XLSX file to store the results in.
--export-json EXPORT_JSON
Output JSON file to store the results in.
--export-sqlite EXPORT_SQLITE
Output SQLITE3 file to store the results in.Tenants:
-tf TENANTS_FILE, --tenants-file TENANTS_FILE
Path to file containing a line by line list of tenants names.
-tt TENANT, --tenant TENANT
Tenant name.
--stdin Read targets from stdin. (default: False)
```## Quick win commands
+ Find tenant ids from a list of domain read from a file:
```
./FindAzureDomainTenant.py -tf domains.txt
```+ Find tenant ids from a list of domain read single options:
```
./FindAzureDomainTenant.py -tt example.com -tt mail.example.com
```+ Find tenant ids read from stdin:
```
subfinder -silent -d example.com | ./FindAzureDomainTenant.py --stdin
```
## ContributingPull requests are welcome. Feel free to open an issue if you want to add other features.