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