The Burp Suite User Forum was discontinued on the 1st November 2024.

Burp Suite User Forum

For support requests, go to the Support Center. To discuss with other Burp users, head to our Discord page.

SUPPORT CENTER DISCORD

Proxy interception - modifying request

Brubs | Last updated: Mar 16, 2022 05:47PM UTC

Hi, I'm writing a java extension to encrypt the body of the request, the idea is that the encryption is done only after I make some modification to the request. For example, I let the proxy with "Intercept on", I modify the request (such as: changing the value of a parameter), and then the extension, will get the modified request, encrypt it and send it to the server. I would like to know if this is possible using an "IInterceptedProxyMessage" interface, or some other API. The chain of events would be like this: 1- Request comes in clear-text; 2- With "intercepted is on" the request is modified by me; 3 - After the modification, the extension takes the request and then do the encryption stuff; 4 - The request is sent to the server. Every help is welcome. Thanks

Hannah, PortSwigger Agent | Last updated: Mar 21, 2022 03:21PM UTC