Giter Club home page Giter Club logo

gdn's Introduction

Get Domain Name From IP

gdn is a Go module to get domain name from SSL certificates given an IP address

Installation Instructions

From Source

gdn requires go1.14+ to install successfully. Run the following command to get the repo -

go install github.com/kmskrishna/gdn@latest

From Github

▶ git clone https://github.com/kmskrishna/gdn.git; cd gdn; go build; mv gdn /usr/local/bin/

Usage

You can input a list of IPs in two ways.

Filename as an argument

▶  gdn ./ips.txt

173.0.84.29 cloudmonitor.paypal.com
173.0.84.43 3ph.paypalcorp.com
173.0.84.31 pics.paypal.com
173.0.84.44 t.paypal.com
173.0.84.12 t.paypal.com
173.0.84.4 securepayments.paypal.com
173.0.84.36 securepayments.paypal.com
173.0.84.45 business.paypal.com
173.0.84.14 t.paypal.com
173.0.84.25 pics.paypal.com
173.0.84.46 t.paypal.com
173.0.84.24 demo.paypal.com
173.0.84.32 py.pl
173.0.84.9
173.0.84.13 business.paypal.com
173.0.84.6 www.paypal.com
173.0.84.16 www.paypal.com
173.0.84.34 www.paypal.com

Piping the content

▶  cat ips.txt | gdn

If you only want the Domain names in respose, it is not implemented right now but you can use the following command

▶  gdn ips.txt | awk '{print $2}' | sort -u

3ph.paypalcorp.com
business.paypal.com
cloudmonitor.paypal.com
demo.paypal.com
pics.paypal.com
py.pl
securepayments.paypal.com
t.paypal.com
www.paypal.com

This will give you unique domain names for all given IPs.

You can also use gdn along side Project Discovery's httpx. You can directly pipe httpx input into gdn and get the domain/subdomain names directly.

▶  cat ips.txt | httpx --silent | gdn

https://173.0.84.25 pics.paypal.com
https://173.0.84.36 securepayments.paypal.com
https://173.0.84.29 cloudmonitor.paypal.com
https://173.0.84.4 securepayments.paypal.com
https://173.0.84.32 py.pl
https://173.0.84.34 www.paypal.com
https://173.0.84.16 www.paypal.com
https://173.0.84.14 t.paypal.com
https://173.0.84.44 t.paypal.com
https://173.0.84.46 t.paypal.com
https://173.0.84.45 business.paypal.com
https://173.0.84.12 t.paypal.com
https://173.0.84.43 3ph.paypalcorp.com
https://173.0.84.24 demo.paypal.com
https://173.0.84.13 business.paypal.com

Limitations and further work

Will add a feature to just get the domain name and not just the subdomain name in future.

gdn's People

Contributors

kmskrishna avatar

Stargazers

 avatar  avatar  avatar  avatar Hlib Sorvenkov avatar  avatar Eyezik avatar TaiNN avatar Rudra Sarkar avatar  avatar 0xf1m avatar Tedix avatar Angelo Alviar avatar topscoder avatar Sissel avatar  avatar Michael avatar Mr.X avatar Abdillah Hasny avatar  avatar George Wong avatar 时雨改二 avatar Yavuz Atlas avatar  avatar Saurabh Tiwari avatar  avatar  avatar  avatar chouaib H'm avatar  avatar six2dez avatar  avatar

Watchers

James Cloos avatar  avatar

gdn'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.