This file contains hidden or 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; | |
import java.util.List; | |
public class BurpExtender implements IBurpExtender | |
{ | |
@Override | |
public void registerExtenderCallbacks(IBurpExtenderCallbacks callbacks) | |
{ |
This file contains hidden or 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
<?xml version="1.0" encoding="UTF-8"?> | |
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> | |
<xsl:output method="html" indent="no"/> | |
<xsl:key name="issue-by-type" match="issue" use="type" /> | |
<xsl:template match="/issues"> | |
<html> | |
<head> | |
<title>Burp Scanner Report</title> |
This file contains hidden or 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
static byte[] updateParameter(IExtensionHelpers helpers, IRequestInfo requestInfo, byte[] request, IParameter parameter, String value) { | |
ByteArrayOutputStream baos = new ByteArrayOutputStream(); | |
int bodyOffset = requestInfo.getBodyOffset(); | |
baos.write(request, bodyOffset, parameter.getValueStart() - bodyOffset); | |
baos.write(value.getBytes(Charsets.ISO_8859_1), 0, value.length()); | |
baos.write(request, parameter.getValueEnd(), request.length - parameter.getValueEnd()); | |
byte[] newBody = baos.toByteArray(); | |
List<String> headers = requestInfo.getHeaders(); | |
for(int i = 0; i < headers.size(); i++) { |
This file contains hidden or 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
from burp import IBurpExtender, IHttpListener | |
class BurpExtender(IBurpExtender, IHttpListener): | |
def registerExtenderCallbacks(self, callbacks): | |
self.callbacks = callbacks | |
callbacks.registerHttpListener(self) | |
def processHttpMessage(self, toolFlag, messageIsRequest, message): | |
helpers = self.callbacks.getHelpers() |
This file contains hidden or 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
<?xml version="1.0" encoding="UTF-8"?> | |
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> | |
<xsl:output method="html" indent="no"/> | |
<xsl:key name="issue-by-type" match="issue" use="type" /> | |
<xsl:template match="/issues"> | |
<html> | |
<head> | |
<title>Burp Scanner Report</title> |
This file contains hidden or 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
import sys, pexpect.popen_spawn, signal | |
if len(sys.argv) != 3: | |
print('Usage: license-burp [yes/no] [license-file]') | |
sys.exit(1) | |
if sys.argv[1] != 'yes': | |
print('You must accept the license to use Burp') | |
sys.exit(1) |
This file contains hidden or 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
static JFrame getBurpFrame() | |
{ | |
for(Frame f : Frame.getFrames()) | |
{ | |
if(f.isVisible() && f.getTitle().startsWith(("Burp Suite"))) | |
{ | |
return (JFrame) f; | |
} | |
} | |
return null; |
This file contains hidden or 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
import sys | |
out = [] | |
in_summary = False | |
with open(sys.argv[1]) as input: | |
for line in input: | |
if line.startswith('<table cellpadding="0" cellspacing="0" class="summary_table">'): | |
in_summary = True | |
if in_summary: | |
line = line.replace('rowspan="4"', 'rowspan="6"') |
This file contains hidden or 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
from burp import IBurpExtender, IHttpListener | |
import threading, time | |
class BurpExtender(IBurpExtender, IHttpListener): | |
count = 0 | |
lock = threading.Lock() | |
def registerExtenderCallbacks(self, callbacks): | |
self.callbacks = callbacks |
NewerOlder