Skip to content

Instantly share code, notes, and snippets.

@0xcod3
Forked from stefanocoding/highlight_in_scope.py
Created May 27, 2019 05:24
Show Gist options
  • Save 0xcod3/8dd51dd9261a943f0f8273bf27c148a7 to your computer and use it in GitHub Desktop.
Save 0xcod3/8dd51dd9261a943f0f8273bf27c148a7 to your computer and use it in GitHub Desktop.
Burp Extension to highlight in the Proxy requests that are in scope
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