Module · Content Analysis
js_endpoints
Extract URLs and API paths baked into a site's JavaScript to widen the mapped attack surface.
FootprintInvestigateNo API key
Run it
# Run only this module on one input$ spiderfootplus try js_endpoints LINKED_URL_INTERNAL https://www.example.com/ # Run it as part of the web profile$ spiderfootplus scan example.com -p web # Change an option for one scan$ spiderfootplus scan example.com -p web --set js_endpoints.maxbytes=2097152-mreplaces a profile's module list and does not add the modules that feed this one, so a profile is the simplest way to get its inputs. Only scan targets you are authorised to assess.
Watches (input)
Produces (output)
Options
| Option | Default | What it does |
|---|---|---|
| maxbytes | 2097152 | Only read the first this-many bytes of a script |
| maxurls | 500 | Emit at most this many discovered URLs per scan |
| historic | true | Also mine archived JavaScript recovered from web archives |
| maxhistoric | 15 | Fetch at most this many archived scripts per scan (each is one web-archive request) |
| wayback_base | https://web.archive.org | Web archive base for fetching archived scripts |
Fed by
- archive_urlsHistorical URLs and query parameters for the target domain from web archives (Wayback Machine and Common Crawl)
- http_probeFetch each hostname over HTTPS/HTTP and record server headers, title and technology hints
- site_mapCrawl the target's own site: list its pages, forms, sign-in and upload pages, and parameters
- well_knownrobots.txt, sitemaps, security.txt and humans.txt on each web host
Feeds
- cors_checkDetect permissive CORS policies that let other sites read a host's responses
- email_harvestCollect e-mail addresses published on the target's web pages (contact pages, footers, mailto links)
- exposed_filesProbe each web host for sensitive files left reachable (.git, .env, SQL dumps, config backups, credentials)
- favicon_hashFavicon hash (Shodan/FOFA convention) for cross-host pivoting and origin discovery
- graphql_fingerprintFind GraphQL endpoints and identify the engine behind them from distinctive error signatures
- secret_scanFind exposed credentials in a site's web assets and in the public code repositories linked to it
- site_mapCrawl the target's own site: list its pages, forms, sign-in and upload pages, and parameters
- sourcemap_scanReachable JavaScript source maps that reconstruct the original source tree
- takeover_checkDetect possible subdomain takeovers — hosts whose DNS points at an unclaimed third-party service
- tech_detectIdentify web server, frameworks, CMS, JS libraries, CDN/WAF and services, with versions and support status
- template_scanRun template-driven vulnerability checks against web hosts
- web_analyticsExtract tracking/analytics IDs (Analytics, Tag Manager, AdSense, Pixel) that link a target's sites to the same owner
- well_knownrobots.txt, sitemaps, security.txt and humans.txt on each web host