vhost Enumeration
Determine Baseline Response Size
Before fuzzing, determine the Content-Length of an invalid vhost to use as a filter value:
curl -s -I http://TARGET -H "Host: randomnotexist.TARGET" | grep Content-LengthUse the returned size with ffuf -fs to filter out default responses.
Gobuster
gobuster vhost -u http://machine.htb -w /usr/share/seclists/Discovery/DNS/bitquark-subdomains-top100000.txtFFuf Fuzzing for subdomains
ffuf -w /usr/share/SecLists/Discovery/DNS/subdomains-top1million-5000.txt:FUZZ -u http://vulnnet.thm -H "Host: FUZZ.vulnnet.thm" -fs 5829Notice that you will get back responses with a similar character count, these are often the ones that will fail, to make the output more readable, filter on the bad character count and look for one with a unique character count.
Another ffuf example
In this example we know the first part of the subdomain used by the company, however we need to bruteforce the second half of the sub domain.
ffuf -w /mnt/home/dasor/wordlist/directory-list-2.3-big.txt:FUZZ -u http://trick.htb/ -H 'Host: preprod-FUZZ.trick.htb' -v -fs 5480ffuf Filter out 302 redirects when looking for subdomains
Sometimes the web server will 302 your request when bruteforcing for subdomains.
First create a new burp listener as such

Now you can use the below command and throw all the requests through the burp proxy to view the requests
Browsing to burp, we can see all the requests and the 302 redirects. Try and figure out what stands out, if most requests are 302's look for 404's or other status codes

Apply our filter removing all 302's

Below is a command to filter the status code without using a burp proxy
ffuf vhost filter by fixed size
When the default vhost returns a consistent response size, filter by that size so only different (valid) vhosts show:
ffuf subdomain over HTTPS
For HTTPS, use
-kto skip certificate verification. Filter by status or size:-fc 200— exclude 200 (default vhost often returns 200)-fs SIZE— exclude responses with this size (baseline from invalid subdomains)
ffuf with Cookie and Matching a status code
-b Cookie data
"NAME1=VALUE1; NAME2=VALUE2"for copy as curl functionality.-mc Match HTTP status codes, or "all" for everything. (default: 200,204,301,302,307,401,403)
WARNING: Avoid ffuf -ac (Auto-Calibrate) for vhost Enumeration
IMPORTANT: Do NOT blindly use -ac (auto-calibrate) for vhost enumeration. It can filter out important results like 421 status codes that indicate valid subdomains with different configurations.
Example of a miss due to -ac:
Why this matters: A 421 Misdirected Request often indicates a valid vhost that requires SNI or a different SSL certificate. Auto-calibrate may mark these as "baseline" and filter them out.
wfuzz for vhost Enumeration
Alternative to ffuf with cleaner output for manual inspection.
Key flags:
-c- Color output--hw- Hide responses with specific word count--hc- Hide responses with specific status codes--hh- Hide responses with specific character count
Example output showing valid subdomains:
Tip: Look for different status codes (421, 302) or varying response sizes to identify valid subdomains.
Common Mistakes in vhost Enumeration
Fuzzing the wrong domain: If
intra.target.htbexists, don't fuzzFUZZ.intra.target.htb- fuzzFUZZ.target.htbinstead.Missing hosts file entry: Ensure the base domain is in
/etc/hostsbefore scanning.HTTPS without -k: Use
-kto skip SSL certificate verification for self-signed certs.
Last updated