Skip to content

waybackurls

45 commands

Pulls every URL the Wayback Machine has archived for a domain — a quick way to find old endpoints and parameters.

  • URL discovery
  • passive recon
  • archive

Install waybackurls

go install github.com/tomnomnom/waybackurls@latest

Basic URL Enumeration2

waybackurls example.com

Fetches archived URLs for the target domain from public web archives.

echo "example.com" | waybackurls

Fetches archived URLs by piping the domain from stdin.

Multiple Domain Enumeration1

cat domains.txt | waybackurls

Fetches archived URLs for a list of domains provided in a file.

Subdomain Handling1

waybackurls -no-subs example.com

Fetches archived URLs for the main domain only, excluding subdomains.

Dates and Versions1

waybackurls -dates example.com

Retrieves the archived URLs along with the timestamp of the capture.

Output Management1

waybackurls example.com > archive_urls.txt

Saves the discovered archived URLs to a text file for later analysis.

Deduplication1

waybackurls example.com | sort -u

Fetches URLs and removes duplicate entries using sort.

Parameter Discovery2

waybackurls example.com | grep "?"

Filters the output to show only URLs that contain query parameters.

waybackurls example.com | grep "="

Filters for URLs that likely contain values assigned to parameters.

File Extension Discovery4

waybackurls example.com | grep "\.js"

Extracts only JavaScript files from the archived URL list.

Link
waybackurls example.com | grep "\.json"

Extracts JSON files which may contain configuration or API data.

Link
waybackurls example.com | grep "\.php"

Identifies archived PHP endpoints for potential vulnerability testing.

Link
waybackurls example.com | grep -E "\.xml|\.conf|\.config|\.yml|\.yaml"

Filters for configuration files that might disclose sensitive information.

Link

Filtering Pipelines1

waybackurls example.com | grep -ivE "\.(jpg|jpeg|gif|css|png|svg|woff|woff2|ico|pdf)"

Removes static assets like images and fonts to focus on application logic.

Link

Sensitive Data Discovery6

waybackurls example.com | grep -i "admin"

Searches the archived URLs for paths containing the word admin.

Link
waybackurls example.com | grep -i "api"

Identifies potential API endpoints within the archived history.

Link
waybackurls example.com | grep -i "login"

Finds historical login pages which may still be accessible.

Link
waybackurls example.com | grep -i "dashboard"

Looks for dashboard interfaces that might expose internal functionality.

Link
waybackurls example.com | grep "\.git"

Checks for accidentally exposed git repositories in the archive history.

Link
waybackurls example.com | grep "\.env"

Searches for environment files which often contain keys and secrets.

Link

Advanced Filtering2

waybackurls -dates example.com | sort -n | cut -d " " -f 2

Sorts archived URLs chronologically by date and extracts just the URL.

Link
waybackurls example.com | sed 's/:80//g;s/:443//g' | sort -u

Normalizes URLs by removing standard ports and deduplicating.

Link

Tool Integration5

waybackurls example.com | uro

Pipes URLs to 'uro' for advanced cleaning and deduplication of parameters.

Link
waybackurls example.com | unfurl domains

Extracts unique domains and subdomains found in the archived URL list.

Link
waybackurls example.com | unfurl paths

Extracts unique URL paths to understand the application structure.

Link
waybackurls example.com | httpx -title -status-code

Checks which archived URLs are still alive and grabs their title and status.

Link
waybackurls example.com | httpx -mc 200

Filters the list to return only URLs that currently respond with a 200 OK.

Link

Vulnerability Hunting5

waybackurls example.com | gf xss

Uses 'gf' to filter URLs that match common XSS parameter patterns.

Link
waybackurls example.com | gf sqli

Uses 'gf' to filter URLs that match common SQL injection patterns.

Link
waybackurls example.com | gf ssrf

Uses 'gf' to filter URLs that match common SSRF parameter patterns.

Link
waybackurls example.com | gf lfi

Uses 'gf' to filter URLs that match common Local File Inclusion patterns.

Link
waybackurls example.com | gf redirect

Uses 'gf' to filter URLs that match open redirect patterns.

Link

Advanced Pipeline4

waybackurls example.com | qsreplace -a | grep "="

Removes duplicate parameter combinations to create a unique fuzzing list.

Link
waybackurls example.com | qsreplace "FUZZ" | nuclei -t vulnerabilities/generic/ -dast

Replaces parameters with a placeholder and pipes to Nuclei for scanning.

Link
waybackurls example.com | grep -E "\.jsquot; | httpx -mc 200 -content-type "javascript"

Finds live JavaScript files from history and verifies their content type.

Link
waybackurls example.com | anew previous_scan.txt

Appends only new URLs found in history to an existing dataset using 'anew'.

Link

Red Team Recon2

waybackurls example.com | grep -E "\.xls|\.xlsx|\.doc|\.docx|\.pdf"

Hunts for document files that might contain metadata or sensitive business info.

Link
waybackurls example.com | grep "aws" | grep "s3"

Specifically targets URLs that reference AWS S3 buckets.

Link

Blue Team Mapping1

cat subdomains.txt | waybackurls | sort -u > full_history.txt

Aggregates historical URLs for an entire list of organization subdomains.

Link

Specific Tech Discovery4

waybackurls example.com | grep "wp-content"

Filters for WordPress-specific paths to identify WordPress installations.

Link
waybackurls example.com | grep "/api/v"

Looks for versioned API endpoints (e.g., /api/v1) in the archive.

Link
waybackurls example.com | grep ".jsp"

Identifies Java Server Pages which may indicate legacy Java applications.

Link
waybackurls example.com | grep ".aspx"

Identifies ASP.NET pages which may indicate a Microsoft stack.

Link

Interactive Pipeline1

waybackurls example.com | grep "debug"

Searches for URLs containing 'debug' which are high-value targets.

Link

Automation1

echo example.com | waybackurls | grep -vE "png|jpg|css|ico" | qsreplace -a

A complete one-liner to fetch, clean, and deduplicate parameters for testing.

Link