// tech stack
// the challenge
In a React, Next.js or Angular app most of the interesting surface never appears in server HTML: routes live inside a JavaScript bundle, are rendered after hydration, or sit behind a client router that returns the same shell for every path. A wordlist alone gives status-code noise, a classic crawler stops at the shell, and aggressive scanners quickly leave the target scope or get blocked by a WAF challenge.
// the solution
Devbuster merges both approaches behind one CLI. The crawler normalizes every URL, resolves the canonical www/non-www origin once before expanding the wordlist, and enforces a scope check that can optionally include subdomains. HTML links, iframe sources, form actions and script sources are collected with BeautifulSoup, while JavaScript responses are scanned with a route-literal regex that deliberately drops images, fonts, CSS, source maps and build assets. Requests run concurrently through an asyncio semaphore with optional delay, and browser mode replays the same crawl through headless Chromium to capture routes that only exist after JavaScript execution.
// measurable impact
One run now produces a de-duplicated, in-scope route inventory with status, size, content type, depth and the source that found each URL — wordlist, HTML tag, JS literal or DOM after rendering. Operators can hide 403/404 noise without stopping the scan, restrict output to selected status codes, throttle against rate limits, and export everything as JSON. Graceful Ctrl+C handling keeps the findings collected so far.
- Timeline
- Sep 2026
- Team
- Solo
- Role
- Crawler design, async request engine, scope rules, JS route extraction, browser mode, CLI
// key highlights
- ◆Merges wordlist fuzzing, HTML crawling, JavaScript route literals and optional Chromium rendering in one pass
- ◆Strict scope enforcement with an opt-in subdomain mode and canonical www/non-www origin resolution
- ◆Async crawler with configurable concurrency, delay, timeout, headers and cookies
- ◆Status filters hide results without interrupting requests; progress stays accurate with a dynamic total
- ◆Browser mode queues DOM links through Playwright for routes that only exist after hydration
- ◆JSON output with status, size, content type, depth and discovery source for every finding
// implementation sample
def in_scope(self, url: str) -> bool:
p = urlparse(url)
if p.scheme not in {"http", "https"}:
return False
host = (p.hostname or "").lower()
if self.include_subdomains:
return host == self.host or host.endswith("." + self.host)
# Treat the common www canonical redirect as same-origin.
return host == self.host or host == "www." + self.host or self.host == "www." + host
def extract(self, base: str, body: str, content_type: str) -> set[tuple[str, str]]:
found: set[tuple[str, str]] = set()
if "html" in content_type.lower():
soup = BeautifulSoup(body, "html.parser")
for tag, attr in (("a", "href"), ("link", "href"), ("iframe", "src"),
("form", "action"), ("script", "src")):
for node in soup.find_all(tag):
value = node.get(attr)
if value:
found.add((urljoin(base, value), f"html:{tag}"))
# Route literals are only reliable in JavaScript bundles, not arbitrary HTML.
if "javascript" not in content_type.lower():
return found
for match in re.finditer(r"(?<![A-Za-z0-9])/(?:[A-Za-z0-9_~:@%+\-]|/)+(?:\?[A-Za-z0-9_.~%+\-&=]*)?", body):
candidate = match.group(0)
if re.search(r"\.(?:png|jpe?g|gif|svg|webp|ico|woff2?|ttf|map|css|js)(?:$|\?)", candidate, re.I):
continue
found.add((urljoin(base, candidate), "js:literal"))
return found