Created
April 12, 2018 18:10
-
-
Save sampsonc/aaab51f97d091866334a7ec7c022843a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package burp; | |
package burp; | |
import java.io.IOException; | |
import java.io.OutputStream; | |
import java.util.logging.Level; | |
import java.util.logging.Logger; | |
/** | |
* | |
* @author chs | |
*/ | |
public class BurpExtender implements IBurpExtender | |
{ | |
private IExtensionHelpers helpers; | |
private static final String EXTENSION_NAME = "Sample Burp Extension"; | |
private OutputStream os; | |
@Override | |
public void registerExtenderCallbacks(IBurpExtenderCallbacks callbacks) | |
{ | |
this.helpers = callbacks.getHelpers(); | |
callbacks.setExtensionName(EXTENSION_NAME); | |
os = callbacks.getStdout(); | |
try | |
{ | |
os.write("Hello, World".getBytes()); | |
} catch (IOException ex) | |
{ | |
Logger.getLogger(BurpExtender.class.getName()).log(Level.SEVERE, null, ex); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment