Writing a Burp Suite extension
The basic class structure for any Burp Suite extension is in the following code, which is provided by PortSwigger:
package burp; public class BurpExtender implements IBurpExtender{ public void registerExtenderCallbacks (IBurpExtenderCallbacks callbacks){ // your extension code here } }
This is basically the class definition that is used to create all of Burp Suite's extensions. Now, let's start to modify the code.
Burp Suite's API
Keeping in mind that all extensions are developed by taking the PortSwigger-provided structure (which was previously shown) as the code base, the entry point for your extension is as follows:
void registerExtenderCallbacks (IBurpExtenderCallbacks callbacks);
If you want to call your own extension, you will need to use the following method:
callbacks.setExtensionName (Your extension name);
The following code shows the byte utilities. They are useful for managing strings, searching substrings, encoding, decoding, and...