Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
from burp import IBurpExtender,IProxyListener
class BurpExtender(IBurpExtender,IProxyListener):
def registerExtenderCallbacks(self,callbacks):
self._helpers = callbacks.getHelpers()
self._callbacks = callbacks
self._callbacks.setExtensionName("IProxyListener Params")
def processProxyMessage(self,messageIsRequest,message):
if messageIsRequest:
msg = message.getMessageInfo()
req_bytes = msg.getRequest() # RAW Request in Bytes
req = self._helpers.analyzeRequest(req_bytes)
req_params = req.getParameters() ## this would be in list
param_list = []
for param in req_params:
new_param = self._helpers.buildParameter(param.getName(),"XXXXXXXXX",param.getType())
new_request = self._helpers.updateParameter(req_bytes,param_list)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment