GithubHelp home page GithubHelp logo

aioresolver's Introduction

AioResolver

License contributions welcome version

aioresolver is a fast DNS resolver tool it is capable of resolving over one thousand domain names in 0.2 seconds with accuracy targeting those who seek to resolve a lot of domain names. aioresolver uses python-adns module which provides Python binding of adns that let's you perform DNS queries of your choice.

Features

  • Fast: Resolves domain names asynchronously.
  • Bruteforce option to find new subdomains.
  • Provides option to filter hosts that resolves to same IP address.
  • Provides option to use custom DNS resolvers (Default: /etc/resolv.conf)
  • Supports A, CNAME, MX, TXT, SOA, NS and PTR query
  • Easy to integerate in workflow turn off banner using -s flag to pipe stdout in other tools.

aioresolver

Prerequisite

aioresolver requires python-adns module if you are still using python-2.7 you can install it using package manager.

> apt-get install python-adns

For python3

  1. First download and install current release of adns_libraries.
sudo apt-get install libadns1-dev
wget http://www.chiark.greenend.org.uk/~ian/adns/adns.tar.gz
tar -xvf adns.tar.gz
cd adns-1.5.0/
./configure
make
sudo make install
  1. Download and install python3 port of adns
git clone --depth 1 https://gitlab.com/kalilinux/packages/python-adns
cd python-adns
sudo python3 setup.py install

Install aioresolver

sudo pip3 install json
git clone https://github.com/tauh33dkhan/aioresolver.git
cd aioresolver

Usage

Flag Description Example
-f File with list of hosts to resolve aioresolver -f tesla.com
-o Use this option to save output to a file aioresolver -f tesla.txt -o alive.txt
-d Domain to bruteforce aioresolver -d example.com -w wordlist.txt
-w Wordlist to use for subdomain bruteforcing aioresolver -d example.com -w
-c Resolve CNAME (dedicated arg for CNAME) aioresolver -f tesla.txt -c
-resp Use this options to show response aioresolver -f tesla.txt -c -resp
-query Query record [A, CNAME, TXT, MX, SOA,NS and PTR aioresolver -f tesla.txt -query MX
-t Filter hosts that resolves to same IP aioresolver -f tesla.txt -t
-i Intensity - Number of domain names to resolves at once, Default=100 aioresolver -f tesla.txt -i 500
-r Text file containing list of DNS resolvers aioresolver -f tesla.txt -r resolvers.txt
-s Use this option to turn off banner aioresolver -f tesla.txt -s
--version Show version aioresolver --version

1. Resolving Domains

> aioresolver.py -f tesla.txt   

This will resolve domain names in tesla.txt file and returns all the live domains, use -resp option to print A record and -o option to save output in a file.

2. Query CNAME

> aioresolver.py -f tesla.txt -c -resp

This will extract CNAME record of all the domain names in tesla.txt file, use -o option to save output in a file.

3. Query TXT/MX/NS/SOA record

> aioresolver.py -f tesla.txt -query MX -resp

This will resolve MX record of all the domain names in tesla.txt file and the output is given in json format which you can read using jq.

{"host1":["ANSWER1","ANSWER2"],"host2":["ANSWER1","ANSWER2", "ANSWER3"]}

4. Bruteforce

aioresolver provides bruteforce option to find new subdomains.

> aioresolver -d example.com -w wordlist.txt

5. PTR query

aioresolver can be used to extract hostnames from given range using PTR query.

> aioresolver -f rangefile.txt -resp

6. Using custom list of resolver

aioreoslver can be used with custom list of resolvers by using -r flag, by default aioresolver uses resolvers in /etc/resolv.conf file.

> cat resolvers.txt
8.8.8.8
1.1.1.1
9.9.9.9
> aioresolver -f tesla.txt -r resolvers.txt

6. Turn off Banner

> aioresolver -f tesla.txt -s | httprobe

This will turn off the banner so you can pipe resolved domain names to other tools like httprobe

Contact Me

@tauh33dkhan

Credits and Thanks

@pkrumins for sharing async_dns.py library which inspired and helped me to create this tool.

aioresolver's People

Contributors

tauh33dkhan avatar ameyanekar avatar

Stargazers

Andrevich avatar Syed Modassir Ali avatar  avatar  avatar Ederson Chimbida avatar Sheryar avatar Never Mind avatar  avatar 5l1v3r1 avatar StaticBunny avatar Matthew Linney avatar Marco avatar  avatar

Watchers

James Cloos avatar  avatar

aioresolver's Issues

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.