Create an extension for Burp. ~ Simply add tab ~

スクリーンショット 2018-02-14 1.04.45.png

package burp;

import java.awt.Button;
import java.awt.Component;

public class BurpExtender implements IBurpExtender,ITab{

    private IBurpExtenderCallbacks callbacks;
    private Component comp;
    
 @Override
 public void registerExtenderCallbacks(IBurpExtenderCallbacks callbacks) {
        this.callbacks = callbacks;
        comp = new Button();
        callbacks.setExtensionName("test");
        callbacks.addSuiteTab(BurpExtender.this);
    }
    

    @Override
    public String getTabCaption() {
       return "testTabCaption";
    }

    @Override
    public Component getUiComponent() {
        return comp;
    }

The registerExtenderCallbacks method is the first to be called when loaded by Extender.

Burp's Extender doesn't work unless you implement the ** registerExtenderCallbacks method. ** **

Store callbacks passed as an argument in a variable of this class (BurpExtender).

After that, store the Button class of java.awt.Component, which is a component of java, in the variable of Component.

Then write the name with the method setExtensionName in IBurpExtenderCallbacks.

Then, add a tab to BurpExtender itself with the addSuiteTab method of callbacks.

Since Itab was implemented, give the tab display name with the getTabCaption method.

Return Component (here Button) to getUiComponent method.

Now you can add tabs.

Recommended Posts

Create an extension for Burp. ~ Simply add tab ~
[Java] Let's create a mod for Minecraft 1.14.4 [3. Add creative tab]
[No.003] Create an order list screen for the orderer
[Java] Let's create a mod for Minecraft 1.14.4 [7. Add progress]
[Java] Let's create a mod for Minecraft 1.14.4 [6. Add recipe]
[Java] Let's create a mod for Minecraft 1.16.1 [Add item]
[Java] Let's create a mod for Minecraft 1.14.4 [1. Add items]
[Java] Let's create a mod for Minecraft 1.14.4 [2. Add block]
[Java] Let's create a mod for Minecraft 1.16.1 [Add block]