Back to library
Offensive Intermediate Free

Virtual host (subdomain) enumeration via HTTP Host header fuzzing

Virtual host (subdomain) enumeration via HTTP Host header fuzzing

Gobuster / Enumeration

Log in to save

Command

gobuster vhost -u http://target.com -w /usr/share/seclists/Discovery/DNS/subdomains-top1million-5000.txt -t 30

Syntax

gobuster vhost -u <url> -w <wordlist> [options]

Use case

Finding internal services and staging environments hosted on the same IP under different virtual hostnames.

Explanation

Discovers virtual hosts by fuzzing the HTTP Host header: • vhost → Virtual host enumeration mode • Sends requests with different Host: headers • Identifies unique response sizes/codes that indicate valid vhosts • More accurate than DNS brute-force for modern web configs • Combine with --append-domain on newer versions

Risk warning

Use only in systems you own or are explicitly authorized to test.

Example output

Found: dev.target.com (Status: 200) [Size: 12453]
Found: staging.target.com (Status: 302) [Size: 0]
Found: admin.target.com (Status: 401) [Size: 456]

More examples

Primary example

gobuster vhost -u http://target.com -w /usr/share/seclists/Discovery/DNS/subdomains-top1million-5000.txt -t 30

Finding internal services and staging environments hosted on the same IP under different virtual hostnames.

linux kali macos gobuster vhost subdomain web enumeration

Related

Offensive Beginner Free

Directory and file brute-force enumeration against a web server

Directory and file brute-force enumeration against a web server

gobuster dir -u http://target.com -w /usr/share/wordlists/dirb/common.txt -x php,html,txt -t 50
gobuster web enumeration directory fuzzing
Gobuster / Enumeration Open