Git Product home page Git Product logo

dnsresolver's Introduction

dnsresolver


DNS Resolver

A Lightning-Fast DNS Resolver


Table of Contents


Installation

Make sure you have rust installed, then run the following command to install dnsresolver.

git clone https://github.com/ethicalhackingplayground/dnsresolver ; cd dnsresolver ; cargo install --path .

Usage

cat subs.txt | dnsresolver

If you need to resolve hosts with any ports, you can use the --ports flag.

cat subs.txt | dnsresolver -p 443,80,8080,8081

Virtual Host Enumeration

Using Unresolved Domains

First step would be to get all the unresolved hosts from a given domain list using:

cat subs.txt | dnsresolver --show-unresolved | anew unresolved.txt

Then, to discover all the virtual hosts from a given domain list,

you can use the --vhost flag followed by the --vhost-file flag.

dnsresolver aims to bypass access restrictions on certain pages. It does so by substituting the host header with unresolved domains and using the sift algorithm. This ensures that the virtual host's response differs from the actual response. Remember to raise the soft limit using the command ulimit -n 10000 to handle more files simultaneously.

cat subs.txt | dnsresolver --vhost --vhost-file unresolved.txt

To validate a finding run this curl command:

curl -v -k thehost.com -H "Host: unresolved-domain.com"

Using Localhost

You can also use the --vhost flag with the --check-localhost flag to replace the host header with localhost, often times this allows you to access restricted pages and can lead to some information disclosures and juicy admin panels.

cat subs.txt | dnsresolver --vhost --check-localhost

To validate a finding run this curl command:

curl -v -k thehost.com -H "Host: localhost"

Demonstrations

asciicast

asciicast

asciicast

Feedback

If you have any feedback, please reach out to us at [email protected] or via twitter https://twitter.com/z0idsec

License

MIT

dnsresolver's People

Contributors

ethicalhackingplayground 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

Watchers

 avatar  avatar  avatar

dnsresolver's Issues

Version issue!

could you make a new argument like -up, which is auto update this tools.
and -silent for hide banner.
image

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.