subfinder

command module
v0.0.0-...-9ae5361 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 19, 2018 License: MIT Imports: 6 Imported by: 0

README

SubFinder

License Twitter Twitter

SubFinder is a subdomain discovery tool that uses various techniques to discover massive amounts of subdomains for any target. It has been aimed as a successor to the sublist3r project. SubFinder uses Passive Sources, Search Engines, Pastebins, Internet Archives, etc to find subdomains and then it uses a permutation module inspired by altdns to generate permutations and resolve them quickly using a powerful bruteforcing engine. It can also perform plain bruteforce if needed. The tool is highly customizable, and the code is built with a modular approach in mind making it easy to add functionalities and remove errors.

SubFinder CLI Options

Why?

This project began it's life as a Bug Bounty World slack channel discussion. We (@ice3man & @codingo) were talking about how the cornerstone subdomain tool at the time, sublist3r, appeared to have been abandoned. The goal of this project was to make a low dependancy, manageable project in Go that would continue to be maintained over time. I (@Ice3man) decided to rewrite the sublist3r project and posted about it. @codingo offered to contribute to the project and subfinder was born.

So finally after working hard, here is something that I hope you guys will ❤.

Features

  • Simple and modular code base making it easy to contribute.
  • Fast And Powerful Bruteforcing Module (In Development)
  • Powerful Permutation generation engine. (In Development)
  • Many Passive Data Sources (CertDB, CertSpotter, crtsh, DNSDumpster, FindSubdomains, Hackertarget, Netcraft, PassiveTotal, PTRArchive, SecurityTrails, Threatcrowd, VirusTotal)
  • Internet Archives support for finding subdomains (In development)

Install

The installation is easy. Git clone the repo and run go build.

go get github.com/ice3man543/subfinder

To configure it to work with certain services, you need to have an API key for them. These are the services that do not work without an API key.

Put these values in the config.json file and you should be good to go.

If your $GOPATH is /home/go, make sure to place your config.json file in $GOPATH/bin folder or wherever you have the binary. Otherwise, it will not work.

Docker

Git clone the repo, then build and run subfinder in a container with the following commands

  • Clone the repo using git clone https://github.com/ice3man543/subfinder.git
  • Edit your Dockerfile to include your API keys
  • Build your docker container
docker build -t subfinder .
  • After building the container, run the following.
docker run --rm -it subfinder

The above command is the same as running -h

For example, this runs the tool against uber.com and output the results to your host file system:

docker run --rm -it subfinder -d uber.com > uber.com.txt

Note: -o uber.com.txt would output into the docker container, which is deleted once the process finishes, because of the --rm segment of the docker command)

NOTE

This tool is currently in active development. So some features may not work or maybe broken. Please do a PR or create an Issue for any features, suggestions or ideas. Would love to hear from you guys.

Acknowledgements

  • @FranticFerret for his work on adding docker support.

License

MIT License

Documentation

Overview

Contains main driver classes for the tool

Directories

Path Synopsis
libsubfinder
engines/passive
Passive Subdomain Discovery Helper method Calls all the functions and also manages error handling
Passive Subdomain Discovery Helper method Calls all the functions and also manages error handling
output
Contains different functions for reporting
Contains different functions for reporting
sources/certdb
A CertDB Subdomain parser in golang
A CertDB Subdomain parser in golang
sources/certspotter
A Golang based client for Certspotter Parsing
A Golang based client for Certspotter Parsing
sources/crtsh
A Golang based client for CRT.SH Parsing
A Golang based client for CRT.SH Parsing
sources/dnsdumpster
A Parser for subdomains from DNSDumpster
A Parser for subdomains from DNSDumpster
sources/findsubdomains
Golang driver from findsubdomains.com
Golang driver from findsubdomains.com
sources/hackertarget
A golang based Hackertarget subdomains search client
A golang based Hackertarget subdomains search client
sources/netcraft
Netcraft Scraping Engine in Golang
Netcraft Scraping Engine in Golang
sources/passivetotal
A golang client for Passive total Subdomain Discovery
A golang client for Passive total Subdomain Discovery
sources/ptrarchive
A PTRArchive subdomain parser in golang
A PTRArchive subdomain parser in golang
sources/securitytrails
A golang SecurityTrails API client for subdomain discovery.
A golang SecurityTrails API client for subdomain discovery.
sources/threatcrowd
A Golang based client for Threatcrowd API
A Golang based client for Threatcrowd API
sources/virustotal
A Virustotal Client for Subdomain Enumeration
A Virustotal Client for Subdomain Enumeration

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL