Coder Social home page Coder Social logo

tld_scanner's Introduction

TLD Scanner

TLD Scanner scans for all existing top level domains for a give domain name.

Switch Description
-d <domain> Specifiy the domain name, example: "google"
-o <outputfile> Write results into <outputfile>
-i <tldfile> Use your own custom TLD list - One TLD per line, no other seperators, case insensitive. You can find three TLD files ccTLDs.txt (country code), sTLDs.txt (special TLDs), topTLDs.txt (top 24 TLDs)
-m <outputmode> Sets the output mode, defaults to 'json'
json -> returns a json object where the keys contain the urls and the values the IP address
jsonarray -> returns a json array where all entries are the URLs
plain -> returns a plain text list of the URLs seperated by a new line
-f Use the newest and complete list of TLDs from IANA. This will take quite some time
-n Does a name lookup and prints the ip (fastest)
-c Tries to connect to the host directly
-b Default: Does a namelookup and then tries to connect and prints the ip
-s Check for https too

Get TLD Scanner running

git clone https://github.com/ozzi-/tld_scanner.git
cd tld_scanner
pip3 install -r requirements.txt
python3 tld_scanner.py

Example

This will do a name lookup (fastest method) for google using the top TLD list (24 domains in 0.0649 seconds)

$ ./tld_scanner.py -n -d google -i topTLDs.txt 
  _______ _      _____     _____  _____          _   _ _   _ ______ _____  
 |__   __| |    |  __ \   / ____|/ ____|   /\   | \ | | \ | |  ____|  __ \ 
    | |  | |    | |  | | | (___ | |       /  \  |  \| |  \| | |__  | |__) |
    | |  | |    | |  | |  \___ \| |      / /\ \ | . ` | . ` |  __| |  _  / 
    | |  | |____| |__| |  ____) | |____ / ____ \| |\  | |\  | |____| | \ \ 
    |_|  |______|_____/  |_____/ \_____/_/    \_|_| \_|_| \_|______|_|  \_\
                                                                   by ozzi-
Using custom TLD List: ['COM', 'CO', 'ORG', 'EDU', 'GOV', 'UK', 'BIZ', 'ME', 'INFO', 'NET', 'CA', 'DE', 'JP', 'FR', 'AU', 'US', 'RU', 'CH', 'IT', 'NL', 'SE', 'NO', 'ES', 'MIL']

Mode: Name lookup only
Using the following protocol(s): ['http://']
google

Using domain: google

100%|████████████████████████████████████████████████████████████████████| 24/24 [00:00<00:00, 376.42domains/s]

{'http://google.co': '172.217.168.46', 'http://google.ch': '172.217.168.3', 'http://google.com': '172.217.168.46', 'http://google.ru': '172.217.168.3', 'http://google.nl': '172.217.168.35', 'http://google.de': '172.217.168.35', 'http://google.ca': '216.58.205.163', 'http://google.net': '172.217.168.4', 'http://google.fr': '172.217.168.35', 'http://google.info': '172.217.168.4', 'http://google.no': '172.217.168.3', 'http://google.es': '172.217.168.35', 'http://google.jp': '172.217.168.35', 'http://google.org': '216.239.32.27', 'http://google.se': '172.217.168.35', 'http://google.me': '172.217.168.4', 'http://google.it': '172.217.168.35', 'http://google.us': '172.217.168.4'}

--- 0.064945936203 seconds ---

This will check all ~1500 TLDs for the domain name "gnu" using http and https

./tld_scanner.py -d gnu -f -s

tld_scanner's People

Contributors

ozzi- avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

tld_scanner's Issues

warnings after fresh install

hi,
getting some errors after fresh OS install
did python3 -m pip install -r requirements.txt no difference
maybe a Python 3.8.5 thing?
2021-05-02_10-27

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.