A wordlist based subdomain scanner written in golang. It scans a target domain for subdomains using a provided wordlist and saves the discovered subdomains with a status code of 200 to an output file.
- Install Go
-
Clone or download the repository.
-
Open a terminal and navigate to the directory containing
scanner.go
. -
Run the following command:
go run scanner.go -domain example.com
Replace
example.com
with the target domain you want to scan.
-
-domain
: Specify the target domain to scan (required). -
-wordlist
: Path to the wordlist file containing subdomains. Defaults tosubdomains.txt
. -
-output-file
: Output file to write found subdomains. Defaults tofound-subdomains.txt
.
go run scanner.go -domain example.com -wordlist custom-wordlist.txt -output-file discovered-domains.txt
This command will scan example.com
using a custom wordlist (custom-wordlist.txt
) and save the discovered subdomains to discovered-domains.txt
.
-
The program will only write subdomains with a status code of 200 to the output file.
-
Ensure that you have the necessary permissions to scan the target domain.
-
Use responsibly and respect the terms of service of the target domain.
Feel free to modify the wordlist, output file, or any other parameters based on your needs.