Skip to content

Instantly share code, notes, and snippets.

@pajswigger
Created November 30, 2017 09:24
Show Gist options
  • Save pajswigger/752a5a29eec9c5ad0599a995c67ce51a to your computer and use it in GitHub Desktop.
Save pajswigger/752a5a29eec9c5ad0599a995c67ce51a to your computer and use it in GitHub Desktop.
from burp import IBurpExtender
from java.io import File
class BurpExtender(IBurpExtender):
def registerExtenderCallbacks(self, callbacks):
args = callbacks.getCommandLineArguments()
if '--report' not in args:
return
output = File(args[args.index('--report') + 1])
issues = callbacks.getScanIssues('')
callbacks.generateScanReport('XML', issues, output)
callbacks.exitSuite(False)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment