burp_export
Export Burp Suite security scan results in XML, HTML, or JSON formats for analysis and reporting during penetration testing.
Instructions
Export Burp Suite scan results
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| format | No | Export format (default: xml) | |
| output_path | No | Output file path (optional) |
Implementation Reference
- Core handler function that performs the burp_export tool logic: fetches scan report from Burp API and saves to file in specified format.async exportResults(format: 'xml' | 'html' | 'json' = 'xml', outputPath?: string): Promise<ScanResult> { try { console.error(`📄 Exporting Burp results in ${format} format`); const exportResponse = await axios.get(`${this.apiBaseUrl}/v0.1/scan/report`, { params: { format } }); const timestamp = new Date().toISOString().replace(/[:.]/g, '-'); const filename = outputPath || `burp-report-${timestamp}.${format}`; fs.writeFileSync(filename, exportResponse.data); return { target: 'export', timestamp: new Date().toISOString(), tool: 'burpsuite_export', results: { export_format: format, output_file: filename, file_size: fs.statSync(filename).size }, status: 'success' }; } catch (error) { return { target: 'export', timestamp: new Date().toISOString(), tool: 'burpsuite_export', results: {}, status: 'error', error: error instanceof Error ? error.message : String(error) }; } }
- src/index.ts:607-608 (registration)Dispatch handler in main server that routes 'burp_export' calls to BurpSuiteIntegration.exportResults method.case "burp_export": return respond(await this.burpSuite.exportResults(args.format || 'xml', args.output_path));
- src/index.ts:468-482 (schema)Tool schema definition and registration in the list of available tools, including input schema for parameters.name: "burp_export", description: "Export Burp Suite scan results", inputSchema: { type: "object", properties: { format: { type: "string", enum: ["xml", "html", "json"], description: "Export format (default: xml)" }, output_path: { type: "string", description: "Output file path (optional)" } }, required: [] } }