Coder Social home page Coder Social logo

dnstwist-wrapper's Introduction

DNSTwist Wrapper

A dnstwist wrapper to automate some tasks.

Why?

Since I use dnstwist from time to time, I keep forgetting what options I like to use it with.

I also like to save the output into a file, so I do not need to run it again, within a short period of time. Nevertheless, the output format I prefer is JSON, which is quite versatile, but it is sometimes a pain in the neck to parse or remember what jq options to leverage.

I do not get it, why?

When you programme more often you feel the need to automate almost anything. The more you automate the less you will have to work later.

As once I have read: thrive to be lazy.

Seriously, why?

Stop it! And read on!

Usage

Get DNSTwist results:

./dnstwist.sh <domain>

Parse DNSTwist JSON results:

./parse-info.sh

Note 1: We can specify a single file: ./parse-info.sh <json-file> Note 2: We can specify a folder, every JSON file within it will be parsed: ./parse-info.sh <dir>

Workflow

Since I use it often, but not that often, I keep forgetting the worflow of commands I like. So I am writing this down here:

  1. Leveraging dnstwist for the target domain:
./dnstwist.sh <domain>
  1. Show a table with the results:
./parse-info.sh results/<date>/<domain>_<time>.json
  1. Create a list with the domains found:
./parse-info.py -d results/<date>/<domain>_<time>.json > results/<date>/<domain>_<time>.txt
  1. Capture the webpage screenshots:
./scrot/scrot.py results/<date>/<domain>_<time>.txt -v

Note: JavaScript-based webpages will not show their content.

Dependencies

The installation methods for any repository are in Debian-based distros.

Since there are bash scripts, there is the need of using some tools, namely

  • column (it should be preinstalled, if not: sudo apt install -y bsdextrautils)
  • grep (it should be preinstalled, if not: sudo apt install -y grep)
  • jq (sudo apt install -y jq)
  • virtualenv (sudo apt install -y python3-virtualenv)
  • dnstwist.py (clone this repo with the --recurse-submodules flag)
  • wkhtmltoimage (sudo apt install -y wkhtmltopdf)

TODO

  • Remake the scripts to be only in Python (only scripts, no the utilities it leverages)
  • Remake the wrapper to use only Python, so it can be cross-platform.

dnstwist-wrapper's People

Contributors

gnunez88 avatar

Watchers

 avatar

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.