ab2pentest/BurpSuite-SiteMap-Dumper
Burp Suite Site Map Dumper
π·οΈ Burp Suite Sitemap Dumper
Easily extract and save all files (JS, HTML, images, etc.) from a Burp Suite sitemap export to your local machine.
Have you ever exported the sitemap from Burp Suite and wished you could instantly save all the files β like JavaScript, HTML, stylesheets, images β directly to your filesystem for offline analysis, debugging, or static analysis?
This tool automates exactly that.
πΈ Example: Exporting Sitemap from Burp Suite
Right-click the domain or folder in Burp Suite's Site Map panel and select:
Save selected items
Save the result as an XML file, and you're ready to go.
βοΈ Features
β Extracts base64-encoded responses
β Reconstructs full folder/URL structure
β Strips HTTP headers from responses
β
Infers missing file extensions via <mimetype>
β
Supports CLI flags via argparse
β Cross-platform (Python 3.6+)
π Usage
python3 burpsuite-sitemap-dumper.py -i all_requests.xml -o output_folderFlags
| Flag | Description |
|---|---|
-i, --input |
Path to Burp XML file (required) |
-o, --output |
Output directory (default: extracted_files) |
You can also view the help menu:
python3 burpsuite-sitemap-dumper.py --helpπ§ How It Works
-
Parses the Burp Suite XML export
-
For each item with a base64-encoded
<response>:-
Decodes the body and strips headers
-
Reconstructs the path from the URL
-
Deduces the file extension:
- From the URL (if present)
- Else from
<mimetype> - Else
.bin
-
Saves the file locally in the appropriate subfolder
-
π§© Example Output Structure
extracted_files/
βββ example.com/
βββ index.html
βββ assets/
β βββ app.js
βββ images/
βββ logo.png
π§ Requirements
- Python 3.6+
- No dependencies (pure standard library)
π§ͺ Tip
If you want to enhance this further:
- Add magic file type detection via
python-magic - Add logging instead of print statements
- Dump a manifest CSV with metadata for auditing
π License
MIT β do whatever you want, just donβt blame us when you dump 10,000 files to disk π
Let me know if youβd like:
- A logo badge
- Packaging as a PyPI tool (
pip install burpsuite-sitemap-dumper) - Prettier table of contents / anchors
