Recon Tool: subby

by | Nov 17, 2023 | Tools




Join our Patreon Channel and Gain access to 70+ Exclusive Walkthrough Videos.

Patreon
Reading Time: 2 Minutes

Description

subby by n0mi1k is a high-speed subdomain enumeration tool that excels in automatically detecting wildcard DNS records and filtering out invalid subdomains. It provides two enumeration modes—DNS for fast and stealthy queries and Web for detailed insights through HTTP(S) requests. With features like adjustable delay, concurrent threads, and wildcard DNS detection, Subby is an efficient choice for discovering and validating subdomains in security assessments and penetration testing.

 

See Also: So you want to be a hacker?
Offensive Security and Ethical Hacking Course




Features

Usage is simple, choose from the 2 enumeration modes below:

DNS Mode is super fast, stealthy and utilises purely DNS requests which avoids hitting the infra and detects for wildcard DNS records.

./subby -u <domain> -w </path/to/wordlist>

Web Mode is slower and noisier but it performs web requests and returns the corresponding status code, useful for identifying web applications.

./subby -u https://<domain> -w </path/to/wordlist>




 

Installation

Subby requires Go 1.18 and above to install successfully. To install, just run the below command or download pre-compiled binary from the release page.

go install github.com/n0mi1k/subby@latest

 

Options

USAGE:
./subby [flags]

FLAGS:
-u, –url Target domain to enumerate [Required]-w, –wordlist Wordlist to use [Required]-d, –delay Set delay in milliseconds for each request (Default 0ms)
-r, –response Display results with these status codes separated by commas (e.g 200,301)
-t, –threads Number of concurrent requester threads (Default 50)
-s, –timeout Maximum timeout in seconds for web requests (Default 2s)
-o, –output Output filename to save results

Using -d to set a delay is highly recommended to avoid getting blocked or affecting your DNS queries.

 

Advance Usage Examples

DNS Enumeration (100 Threads, 200ms Delay, Output to results.txt):

./subby -u -w </path/to/wordlist> -t 100 -d 200 -o results.txt

Web Enumeration (20 Threads, 200ms Delay, 5s Max Request Timeout, Show Codes 200 and 301, Output to results.txt):

./subby -u https:// -w </path/to/wordlist> -t 20 -d 200 -s 5 -r "200,301" -o results.txt

 

 

Wildcard DNS Records

A wildcard DNS record answers DNS requests for any subdomain isn’t defined. Some domains has this configured which makes subdomain enumeration tedious, as invalid subdomains still receives an answer. Subby automatically detects for wildcard DNS records and filters out false positives, accurately displaying valid and existing subdomains.

 

Disclaimer

This tool is for educational and testing purposes only. Do not use it to exploit the vulnerability on any system that you do not own or have permission to test. The authors of this script are not responsible for any misuse or damage caused by its use.

 

Clone the repo from here: GitHub Link

 

Merch

Recent Tools

Offensive Security & Ethical Hacking Course

Begin the learning curve of hacking now!


Information Security Solutions

Find out how Pentesting Services can help you.


Join our Community

Share This