Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@stefanocoding
Created April 9, 2018 15:01
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save stefanocoding/3fb3e014a2d6272892695025091d9ad4 to your computer and use it in GitHub Desktop.
Save stefanocoding/3fb3e014a2d6272892695025091d9ad4 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