Skip to content

gau

45 commands

“GetAllUrls” — fetches known URLs for a domain from the Wayback Machine, Common Crawl, OTX and URLScan for passive recon.

  • URL discovery
  • passive recon

Install gau

go install github.com/lc/gau/v2/cmd/gau@latest

Basic URL Collection2

gau example.com

Fetches all known URLs for the single target domain from all default providers.

gau www.example.com

Fetches URLs specifically for the www subdomain of the target.

Input from STDIN2

echo example.com | gau

Accepts a single domain from standard input via pipe for automation.

cat domains.txt | gau

Accepts a list of domains from a file via cat and pipe for bulk scanning.

Subdomain Inclusion1

gau --subs example.com

Includes subdomains of the target domain in the search results.

Multiple Domain Enumeration1

gau example.com test.com

Accepts multiple domains as command line arguments for simultaneous scanning.

Provider Selection4

gau --providers wayback example.com

Fetches URLs exclusively from the Wayback Machine provider.

gau --providers commoncrawl example.com

Fetches URLs exclusively from the Common Crawl provider.

gau --providers otx example.com

Fetches URLs exclusively from AlienVault OTX.

gau --providers urlscan example.com

Fetches URLs exclusively from URLScan.io.

Link

Provider Control1

gau --providers wayback,otx example.com

Fetches URLs only from specific selected providers, comma-separated.

Link

Extension Filtering2

gau --blacklist png,jpg,gif example.com

Excludes URLs ending in specific file extensions to reduce noise.

Link
gau --blacklist ttf,woff,svg,css example.com

Filters out static asset files like fonts and stylesheets.

Link

Performance Tuning2

gau --threads 5 example.com

Sets the number of concurrent workers to 5 to control request rate.

Link
gau --threads 50 example.com

Increases concurrency to 50 threads for faster data retrieval.

Link

Verbose Mode1

gau --verbose example.com

Displays real-time progress and active fetching status during execution.

Link

JSON Output1

gau --json example.com

Outputs the results in JSON format containing metadata like method and status code.

Link

File Output2

gau --o results.txt example.com

Saves the discovered URLs directly to a text file.

Link
gau --o results.json --json example.com

Saves the output in JSON format to a file for structured analysis.

Link

Date Filtering (Wayback)3

gau --from 202301 example.com

Fetches URLs archived from a specific date (YearMonth format) onwards.

Link
gau --to 202212 example.com

Fetches URLs archived up to a specific date.

Link
gau --from 202201 --to 202212 example.com

Fetches URLs archived within a specific year range.

Link

Network Configuration1

gau --retries 10 example.com

Increases the number of retries for failed HTTP requests to improve reliability.

Link

Proxy Configuration1

gau --proxy http://127.0.0.1:8080 example.com

Routes all traffic through a specified HTTP proxy for privacy or analysis.

Link

Advanced Combination2

gau --subs --blacklist png,jpg,gif example.com

Fetches URLs including subdomains while excluding common image files.

Link
gau --subs --providers wayback,commoncrawl example.com

Queries specific providers for the domain and all its subdomains.

Link

Red Team URL Discovery1

gau --subs --blacklist png,jpg,css,js,gif --o potential_targets.txt example.com

Collects interesting endpoints by excluding static assets and saving to file.

Link

Blue Team Surface Mapping1

gau --subs --json --o inventory.json example.com

Creates a full structured inventory of all exposed URLs for a domain organization.

Link

Parameter Discovery1

gau --subs example.com | grep "="

Pipes output to grep to filter only URLs containing query parameters.

Link

Silent Mode Usage1

gau example.com > urls.txt

Redirects standard output to a file, effectively silencing the terminal output.

Link

Large Scale Recon1

cat targets.txt | gau --threads 20 --blacklist png,jpg,gif,css

Scans a list of targets with moderate concurrency and asset filtering.

Link

Specific Year Investigation1

gau --from 2023 --to 2023 example.com

Retrieves URLs that were archived specifically during the year 2023.

Link

URL Normalization1

gau --subs example.com | sort -u

Uses standard sort to deduplicate the URL list collected by gau.

Link

Mime Type Filtering (Advanced)1

gau --mc 200 example.com

Attempt to filter by match status code if supported by the provider index (feature availability varies).

Link

Web App Reconnaissance1

gau --subs --blacklist exe,zip,rar,tar example.com

Excludes large binary files to focus on web application endpoints.

Link

API Discovery1

gau --subs example.com | grep "api"

Filters the output for URLs containing the keyword 'api' to find API endpoints.

Link

JavaScript File Discovery1

gau --subs example.com | grep "\.jsquot;

Filters the output to find only JavaScript files for static analysis.

Link

Configuration File Hunting1

gau --subs example.com | grep -E "\.xml|\.json|\.config"

Filters for potential configuration files exposed in archives.

Link

Timeout Configuration1

gau --timeout 60 example.com

Sets a custom timeout in seconds to prevent hanging on slow providers.

Link

Exclude Subdomains1

gau example.com

Running without the --subs flag implicitly excludes subdomains, fetching only root domain URLs.

Link

Short Syntax1

gau -s -b png,jpg example.com

Uses short flags (-s for subs, -b for blacklist) for quicker typing.

Link

Pipeline Integration1

gau --subs example.com | httpx -silent

Pipes discovered URLs directly into httpx to probe for live status.

Link

Complex Filtering1

gau --subs --blacklist png,jpg,svg,gif,css,woff --providers wayback,otx --threads 10 example.com

A highly specific command combining subdomains, heavy filtering, specific providers, and threading.

Link

Full Automation1

cat domains.txt | gau --subs --blacklist png,jpg,gif --threads 20 --o all_urls.txt

The ultimate automation command for bulk processing domains with filters and file output.

Link