/GetRootDomains

Extract root domains from a subdomains list

Primary LanguagePython

👻GetRootDomains👻

Extract root domains from a subdomains list.

Prerequisites

  • Python 3.x

Installing

  • Download and install Python 3.x
  • Clone the repository

Running the script

python3 subdomains.txt root-domains.out

Example of the usage:

image

Input file

romis.navy.mil
orglrt2.my.af.mil
airmantest.dodlive.mil
umechpar2.navy.csd.disa.mil
nswic.navsoc.socom.mil
www.author.public.navy.mil
opnav-stage.portal.navy.mil
roster.jag.af.mil
www.candp.marines.mil
auth-bo-dod-emall-coop.csd.disa.mil
satx-webmail.med.navy.mil
nll2.ahf.nmci.navy.mil
ircms.navair.navy.mil
ncr.dowding.cuas.dds.mil
a4mxtng.csd.disa.mil
afms.csd.disa.mil

Ouput file

navy.mil
af.mil
dodlive.mil
disa.mil
socom.mil
dds.mil