Extract root from domain
Project description
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
root-domain-0.0.1.tar.gz
(2.7 kB
view details)
Built Distributions
root_domain-0.0.1-py3.7.egg
(5.2 kB
view details)
File details
Details for the file root-domain-0.0.1.tar.gz
.
File metadata
- Download URL: root-domain-0.0.1.tar.gz
- Upload date:
- Size: 2.7 kB
- Tags: Source
- Uploaded using 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
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 82bcc9fceb0132d80f0ede07446826760eb2b3d1736164e23ce30c435487acdf |
|
MD5 | ca0fbbc6194436c90b8e68761f9d1abf |
|
BLAKE2b-256 | c77c536df0f38333c477792eb837a4d8b6ef8153b2430520be3b302114e15c1b |
File details
Details for the file root_domain-0.0.1-py3.7.egg
.
File metadata
- Download URL: root_domain-0.0.1-py3.7.egg
- Upload date:
- Size: 5.2 kB
- Tags: Source
- Uploaded using 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
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 97fea12d5b6df9ca555b865df944d65c6a22998d0c5ae5b15f6c1c0a15fe7b8f |
|
MD5 | f27e266950566ce16d31b33441b72cbb |
|
BLAKE2b-256 | 35d80e7c526e134ac29eaf16779b76e940e80761f82b447c7af8868d9dcc3a9d |
File details
Details for the file root_domain-0.0.1-py3-none-any.whl
.
File metadata
- Download URL: root_domain-0.0.1-py3-none-any.whl
- Upload date:
- Size: 15.5 kB
- Tags: Python 3
- Uploaded using 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
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | bbcb4465bd07d03ecaa5d169b356c8efda25529db8022b4c69ea6c0f63511df1 |
|
MD5 | 1e7c50045d6762605b92991fef593c97 |
|
BLAKE2b-256 | 5b5b718fa3da801ef26b6e577863fce31669990c4848ef323568750db8efbe51 |