Burp Suite User Forum

Create new post

Encode request body and response body

Jan | Last updated: Mar 06, 2023 09:31PM UTC

Hi there, In my extension, I am making requests with makeHttpRequest() method. And both request and response are visible in Logger. The problem is this request requires that the request body is encoded with RSA + cert and the body in response is encoded too. So I can see requests/responses in Logger but the bodies are not readable. Is there a way to encode body response via extension or directly in Burp Suite, so this data is readable? Thank you

Jan | Last updated: Mar 06, 2023 09:51PM UTC

* Decode the body in response

Jan | Last updated: Mar 06, 2023 11:38PM UTC

I just found I can just use IHttpListiner and then setRequest()/setResponse(). How can I extract body params from IResponseInfo? Thank you

Hannah, PortSwigger Agent | Last updated: Mar 08, 2023 10:09AM UTC

Hi If you want to decode this, this would be better done in a new MessageEditorTab, rather than by using setRequest/setResponse. You could also use the "Hackvertor" extension in the BApp Store. Examples of adding a new tab to decode content can be found here: - Legacy Extender API: https://github.com/PortSwigger/example-custom-editor-tab - Montoya API: https://github.com/PortSwigger/burp-extensions-montoya-api-examples/tree/main/customrequesteditortab

You must be an existing, logged-in customer to reply to a thread. Please email us for additional support.