Burp Suite User Forum

Create new post

Extract Response Message Body

Amit | Last updated: Dec 30, 2015 09:29AM UTC

Hey , I am making my first extension using Java in NetBeans, and I need to extract the message from the Response so that I can perform my operations over it. But after checking the examples and other javadocs , I was unable determine how to do it. Kindly, let me know how can I extract the message from the response??

PortSwigger Agent | Last updated: Dec 30, 2015 10:27AM UTC

There are methods in IExtensionHelpers to analyze a raw response and obtain an IResponseInfo object that includes the offset of the message body: https://portswigger.net/burp/extender/api/burp/IExtensionHelpers.html Given the raw response buffer and the body offset you can do an array copy to create a buffer containing only the body part, if that is what you want.

Burp User | Last updated: Dec 30, 2015 10:40AM UTC

Thanks a lot ! Working with the offset till the end of the byte stream works.

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