Created
April 9, 2018 15:01
-
-
Save stefanocoding/3fb3e014a2d6272892695025091d9ad4 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