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:
Bambda library - Create any type of Bambda, starting from a built-in template or a blank definition.
Specific Burp tools - Create Bambdas directly in certain tools.
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.
Slow running or resource-intensive Bambdas can slow down Burp. Write your Bambda carefully to minimize performance impact.
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:
Go to Extensions > Bambda library.
Click New and select either Blank or From template.
If you selected From template, select a template from the list, then click Create using this template.
Click the name field and enter a unique name.
Click the Function drop-down menu and select the task that the Bambda will perform.
Click the Location drop-down menu and select the Burp tool where you want to use the Bambda.
Write the Bambda in Java.
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.
Click Save & close.
Press Ctrl + S or Cmd + S to quickly save your Bambdas.
#bambdas channel.
Many tools in Burp enable you to create and apply Bambdas directly. For more information, see the feature-specific instructions.
For instructions on how to create Bambdas for filtering tables, see the following pages:
For instructions on how to create Bambdas for adding custom columns to tables, see the following pages:
Custom actions are tasks that you can apply to HTTP messages in Burp Repeater to extract, transform, and analyze data.
For instructions on how to create custom actions in Burp, see Custom actions.
For reference guides on how to write custom actions, see Writing custom actions.
For instructions on how to create Bambdas for HTTP match and replace rules, see Creating HTTP match and replace rules with Bambdas.