Creating Bambdas

Bambdas are small, reusable sections of Java code that enable you to fine-tune and extend Burp Suite's functionality. They can be used for tasks such as creating custom match-and-replace rules, table columns, and filters.

You can create Bambdas from the following locations:

Before you begin, we recommend exploring our Bambdas GitHub repository. There may be an existing Bambda that meets your needs or provides inspiration for creating your own.

Warning

Slow running or resource-intensive Bambdas can slow down Burp. Write your Bambda carefully to minimize performance impact.

Creating Bambdas in the Bambda library

In the Bambda library you can create new Bambdas using built-in templates or from a blank definition. After saving Bambdas to your library you can load and apply them across Burp.

To create a new Bambda in your library:

  1. Go to Extensions > Bambda library.

  2. Click New and select either Blank or From template.

  3. If you selected From template, select a template from the list, then click Create using this template.

  4. Click the name field and enter a unique name.

  5. Click the Function drop-down menu and select the task that the Bambda will perform.

  6. Click the Location drop-down menu and select the Burp tool where you want to use the Bambda.

  7. Write the Bambda in Java.

  8. Click Save. The Bambda is saved to your library. Any errors are shown in the Compilation errors panel. You must resolve these before you can apply your Bambda. For more information, see Troubleshooting Bambdas.

  9. Click Save & close.

Note

Press Ctrl + S or Cmd + S to quickly save your Bambdas.

Related pages

Creating Bambdas from specific Burp tools

Many tools in Burp enable you to create and apply Bambdas directly. For more information, see the feature-specific instructions.

Filtering tables

For instructions on how to create Bambdas for filtering tables, see the following pages:

Adding custom columns

For instructions on how to create Bambdas for adding custom columns to tables, see the following pages:

Adding match and replace rules

For instructions on how to create Bambdas for HTTP match and replace rules, see Creating HTTP match and replace rules with Bambdas.