This script allows you to perform subdomain enumeration and directory fuzzing on a specified domain. Based on the chosen option (subdomain
or fuzz
), it will either enumerate subdomains or fuzz for directories/files within the domain.
dig
(for subdomain resolution)curl
(for fuzzing)
./subfzz.sh <domain> <option> [<subdomains_file> or <fuzzing_file>]
<domain>
: The domain to target (e.g.,example.com
).<option>
: The action to perform. Options are:subdomain
: Enumerates subdomains using a provided list.fuzz
: Fuzzes directories or files on the domain using a provided wordlist.
<subdomains_file>
: (Required if usingsubdomain
option) A file containing a list of subdomains to check.<fuzzing_file>
: (Required if usingfuzz
option) A file containing directory or file names for fuzzing.
To enumerate subdomains for a domain using a wordlist file called /usr/share/seclists/Discovery/DNS/subdomains-top1million-5000.txt
:
./subfzz.sh example.com subdomain /usr/share/seclists/Discovery/DNS/subdomains-top1million-5000.txt
This will check for active subdomains in the provided list and output the results.
To fuzz directories or files on a domain using a wordlist file called /usr/share/seclists/Discovery/Web-Content/directory-list-2.3-medium.txt
:
./subfzz.sh example.com fuzz /usr/share/seclists/Discovery/Web-Content/directory-list-2.3-medium.txt
This will test for valid directories or files based on the wordlist provided.