root-domain
This tool allows to extract the root domain from subdomains. Useful for parse lists of subdomains and retrieve the root domains.
Moreover you also can adjust the depth of the domains extracted with -d and -D
Setup
To install:
git clone https://gitlab.com/Zer1t0/root-domain
cd root-domain/
python3 setup.py install
Examples
Get root domain:
./root-domain.py a.b.c.d.e.google.com
google.com
Get subdomain with depth 2 (first subdomain):
/root-domain.py a.b.c.d.e.google.com -d 2
e.google.com
Get subdomains until depth 4:
./root-domain.py a.b.c.d.e.google.com -D 4
google.com
e.google.com
d.e.google.com
c.d.e.google.com
Get subdomains with depth between 3 and 4:
./root-domain.py a.b.c.d.e.google.com -d 3 -D 4
d.e.google.com
c.d.e.google.com
Release files for root-domain 0.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| root-domain-0.0.1.tar.gz | 2.7 kB | Details |
Built distributions (wheels)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| root_domain-0.0.1-py3.7.egg | Legacy Egg format | - | - | Details |
| root_domain-0.0.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 23.5 kB
Release files / root-domain-0.0.1.tar.gz
| Download URL | root-domain-0.0.1.tar.gz |
|---|---|
| Size | 2.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
82bcc9fceb0132d80f0ede07446826760eb2b3d1736164e23ce30c435487acdf
|
|
BLAKE2b-256 checksum How to use checksums |
c77c536df0f38333c477792eb837a4d8b6ef8153b2430520be3b302114e15c1b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.7.3
|
Release files / root_domain-0.0.1-py3.7.egg
| Download URL | root_domain-0.0.1-py3.7.egg |
|---|---|
| Size | 5.2 kB |
| Tags | Egg |
|
SHA-256 checksum How to use checksums |
97fea12d5b6df9ca555b865df944d65c6a22998d0c5ae5b15f6c1c0a15fe7b8f
|
|
BLAKE2b-256 checksum How to use checksums |
35d80e7c526e134ac29eaf16779b76e940e80761f82b447c7af8868d9dcc3a9d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.7.3
|
Release files / root_domain-0.0.1-py3-none-any.whl
| Download URL | root_domain-0.0.1-py3-none-any.whl |
|---|---|
| Size | 15.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
bbcb4465bd07d03ecaa5d169b356c8efda25529db8022b4c69ea6c0f63511df1
|
|
BLAKE2b-256 checksum How to use checksums |
5b5b718fa3da801ef26b6e577863fce31669990c4848ef323568750db8efbe51
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.7.3
|