-
-
Save 0xcod3/8dd51dd9261a943f0f8273bf27c148a7 to your computer and use it in GitHub Desktop.
Burp Extension to highlight in the Proxy requests that are in scope
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
from burp import IBurpExtender | |
from burp import IProxyListener | |
class BurpExtender(IBurpExtender, IProxyListener): | |
def registerExtenderCallbacks(self, callbacks): | |
self.helpers = callbacks.getHelpers() | |
self.callbacks = callbacks | |
callbacks.setExtensionName('Highlight in scope') | |
callbacks.registerProxyListener(self) | |
return | |
def processProxyMessage(self, messageIsRequest, message): | |
if not messageIsRequest: | |
return | |
message_info = message.getMessageInfo() | |
url = self.helpers.analyzeRequest(message_info).getUrl() | |
if self.callbacks.isInScope(url): | |
message_info.setHighlight("yellow") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment