GitHunt
AB

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

image

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_folder

Flags

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
ab2pentest/BurpSuite-SiteMap-Dumper | GitHunt