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 hashes)
Built Distributions
root_domain-0.0.1-py3.7.egg
(5.2 kB
view hashes)
Close
Hashes for root_domain-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bbcb4465bd07d03ecaa5d169b356c8efda25529db8022b4c69ea6c0f63511df1 |
|
MD5 | 1e7c50045d6762605b92991fef593c97 |
|
BLAKE2b-256 | 5b5b718fa3da801ef26b6e577863fce31669990c4848ef323568750db8efbe51 |