Updated Jul 15, 2026

Discovery

Gather URLs and JS paths from live hosts

hakrawler is a fast Go web crawler that gathers URLs, forms, and JavaScript file locations from a target with minimal configuration, built on the gocolly library for recon and endpoint discovery.

installgo install github.com/hakluke/hakrawler@latest

commit 6190559 on Trickest · Go · GPL-3.0 license

Free plan: 1 user, 3 execution slots, no card.

overview

What hakrawler does

hakrawler crawls a list of seed URLs and emits links, forms, and JavaScript file locations. Bound how far it walks with -d. -subs widens scope to related hostnames; -u keeps only unique URLs.

Enable -s when you need the source of each URL (href, form, or script). -json makes the stream easier to pipe. Without live seeds, the crawl has little to walk.

Trickest runs hakrawler as a managed Discovery node that takes a URLs file and writes file/folder output. Prefer katana when you need headless JS rendering; use gau for passive archive URLs only.

source github.com/hakluke/hakrawler · commit 6190559 on Trickest

image quay.io/trickest/hakrawler:6190559

use cases

hakrawler use cases

Gather URLs from a host list

Crawl a set of live hosts to depth and collect the links and forms each one exposes for the next stage to probe.

Find JavaScript file locations

Let hakrawler surface the script files a site loads so a downstream linkfinder can mine them for endpoints.

Trace where each URL came from

Show the source of every URL, whether href, form, or script, so you know how a path was discovered before testing it.

Crawl across subdomains

Include subdomains so a crawl seeded from one host reaches related names within the same organization.

reference

hakrawler inputs and flags

10 inputs
NameTypeFlagDescription
urlsFILE·List of urls
depth-to-crawlSTRING-dDepth to crawl. (default 2)
threadsSTRING-tNumber of threads to utilise. (default 8)
json-outputBOOLEAN-jsonOutput as json
include-subdomainsBOOLEAN-subsInclude subdomains for crawling.
show-source-urlBOOLEAN-sShow the source of URL based on where it was found (href, form, script, etc.)
only-unique-urlsBOOLEAN-uShow only unique urls.
proxySTRING-proxyProxy URL. E.g. -proxy http://127.0.0.1:8080

Showing key inputs. hakrawler exposes 10 inputs in total.

Full flag reference (10 inputs)
NameTypeFlagDescription
urlsFILE·List of urls
proxySTRING-proxyProxy URL. E.g. -proxy http://127.0.0.1:8080
threadsSTRING-tNumber of threads to utilise. (default 8)
insecureBOOLEAN-insecureDisable TLS verification.
json-outputBOOLEAN-jsonOutput as json
custom-headerSTRING-hCustom headers separated by two semi-colons. E.g. -h "Cookie: foo=bar;;Referer: http://example.com/"
depth-to-crawlSTRING-dDepth to crawl. (default 2)
show-source-urlBOOLEAN-sShow the source of URL based on where it was found (href, form, script, etc.)
only-unique-urlsBOOLEAN-uShow only unique urls.
include-subdomainsBOOLEAN-subsInclude subdomains for crawling.

example

hakrawler command examples

hakrawler · command
# crawl seeds to depth 2, unique URLs only, include subdomains
cat urls.txt | hakrawler -d 2 -u -subs -t 8
Illustrative
https://example.com/
https://example.com/login
https://example.com/api/v1/status
https://example.com/static/app.js
https://www.example.com/docs
https://api.example.com/health
https://example.com/products?id=1
https://staging.example.com/
https://cdn.example.com/bundle.js

guidance

hakrawler vs alternatives

Use for a lightweight crawl that gathers URLs and JavaScript locations from a host list. For deeper crawling with headless JS rendering and richer scope controls, use katana. For passive-only archive URLs, use gau.

ToolPick it when
katanaDeeper crawler with headless JS rendering and more scope controls. hakrawler stays lighter.
gospiderGo spider with archive sources and more filtering. Close sibling with a larger option set.
gauPassive URLs from web archives with no live requests. Complements an active hakrawler crawl.

faq

hakrawler FAQ

URLs from links and forms, plus JavaScript file locations, across the host list you give it. Built on the Gocolly crawling library.

Set -d to control depth from each seed and decide whether to include subdomains with -subs. Use -u to keep only unique URLs in the output.

Yes. Enable -s to show the source of each URL, whether it came from an href, a form, or a script.

Subdomain discovery and HTTP probing. Crawl only live hosts so gathered URLs point at targets that respond.

Pass -json so each result is a structured record. On Trickest, enable the json-output input on the hakrawler node.

Yes. Set -proxy to an HTTP proxy URL such as http://127.0.0.1:8080. Use -insecure if you need to skip TLS verification behind an intercepting proxy.

Run hakrawler yourself

A host list feeds hakrawler, which crawls for URLs and JavaScript locations and passes them to httpx so only live ones land as output.

Facts on this page come from the live Trickest tool library.