#!/usr/bin/env python3 """ spider_mpa.py [--cookie "k=v; k2=v2"] [--max 200] [--depth 4] Reference template — not a turnkey product. Adjust --exclude, cookie, depth/max and other same-domain policies for the target before running. Fallback for NON-SPA targets (traditional server-rendered MPAs: Django/Rails/PHP/ JSP, classic admin panels). When there is no JS endpoint bundle, the API surface lives in HTML
, , and inline-JS ajax urls. This BFS-crawls the same origin and extracts: - forms.txt : METHOD action [param1, param2, ...] (the real "endpoints") - links.txt : every same-origin URL reached - api_inline.txt : url-ish strings found in inline