Skip to main content

◈ Security / Web Recon · 2026

Devbuster — Scope-Aware Route Crawler

A Python CLI that finds real routes in React, Next.js, Vue and Angular apps by merging wordlist fuzzing, HTML crawling, JS route literals and optional Chromium rendering

Python 3.10+httpxasyncioBeautifulSoup
Project overview
HTTP + headless browserModes
wordlist + crawl + JS literalsDiscovery
asyncio, configurableConcurrency
console + JSONOutput

Devbuster is a security recon CLI for modern single-page applications, where classic wordlist fuzzing misses client-side routes and a plain crawler misses everything behind a JavaScript bundle. It runs an asyncio httpx crawler that respects a strict scope, merges a path wordlist with links found in HTML and route literals extracted from JavaScript bundles, and can optionally hand the crawl to headless Chromium through Playwright to collect routes that only exist after hydration. Canonical www/non-www redirects are resolved before the wordlist is expanded, duplicate and out-of-scope URLs are dropped, status filters only hide output instead of stopping requests, and a dynamic progress line keeps a live hit rate. Every result can be written to JSON for later tooling.

// tech stack

Python 3.10+httpxasyncioBeautifulSoupPlaywrightChromiumargparseJSON

// 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