1. Support Center
  2. BApp Store
  3. Python Scripter
Professional Community

Python Scripter

This extension allows execution of custom Python scripts to be used with HTTP request and responses plus support for handling Macro messages.

To use, type or paste a Python script into the "Python Scripts" tab, and use Burp in the normal way. The script will be executed for each HTTP request and response.

Items placed into the 'state' dictionary will be persisted across request/responses.

The following variables are defined in the context of the script:

  • extender: IBurpExtender
  • callbacks: IBurpExtenderCallbacks
  • helpers: IExtensionHelpers
  • toolFlag: int
  • messageIsRequest: bool
  • messageInfo: IHttpRequestResponse
  • macroItems: IHttpRequestResponse[]
  • state: dict
Author Marcin Wielgoszewski, Mike Cromwell
Version 2.1
Last updated 20 May 2022

You can install BApps directly within Burp, via the BApp Store feature in the Burp Extender tool. You can also download them from here, for offline installation into Burp.

You can view the source code for this BApp by visiting our GitHub page.
Follow @BApp_Store on Twitter to receive notifications of all BApp releases and updates.
Download BApp

Please note that extensions are written by third party users of Burp, and PortSwigger Web Security makes no warranty about their quality or usefulness for any particular purpose.

Go back to BappStore