Coder Social home page Coder Social logo

samb00ka / dnskron Goto Github PK

View Code? Open in Web Editor NEW
15.0 2.0 3.0 501 KB

Fast DNS history enumeration tool for network and OSINT investigations

Shell 100.00%
dns-enumeration osint network-mapping virustotal subdomains-finder information-gathering osint-tool redteam reconnaissance penetration-testing pentest-tool infosec intelligence-gathering network-recon dns-history cloudflare-disclosure

dnskron's Introduction

About DNSkron

DNSkron is a Linux shell script developed to enumerate historical DNS records, subdomains, analyze network infrastructure and find potentially related websites for a target domain or IP address. In some situations helps to disclosure Cloudflare protected websites. The script uses Virustotal free API key

Requirements

DNSkron requires curl, csvtool, jq

$ sudo apt install curl csvtool jq

Installation

  1. Register a Virustotal account and get your free API key
  2. Download dnskron.sh to your Linux PC and put it into a folder
  3. Install requirements
  4. Open dnskron.sh with a text editor, replace <API_KEY> (line 7) with your API key and save the file

Usage

Open Terminal in a folder where the script is located and type the following (root rights are not required):

$ bash dnskron.sh

Example:

  • For a target domain "free-mp3-radio.fm" we will create a "free-mp3-radio" case and use key words "mp3, radio, fm, music", they will help us to find related domains (can be operated by the same owner).

In addition to stdout output the script creates a folder with a csv file with all IP addresses found and a txt file with subdomains and IP related information. Timestamp shows when domain was seen on that IP for the last time.

API limit is enough for a non-commercial daily use (1000 queries). Amount of domains resolved from IP is limited to 1000. The script was tested on Ubuntu/Debian systems.

Hint: Set scrolling in terminal to unlimited, the output may include thousands of domains.

License

free

Special thanks to Virustotal: Guys you are doing a great job!!!

Screenshots

N|Solid N|Solid N|Solid

Issues and code updates

  1. Incorrect display of subdomains list in summary - SOLVED (26.11.2020)
  2. Logical mistake causing problem with the IP list (unique IPs) - SOLVED (28.11.2020)

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.