Burp Suite User Forum

Login to post

Extension is not following redirects.

Ahmed | Last updated: Dec 04, 2021 12:15PM UTC

Hello Team, Hope you guys are doing well. I 'm currently writing an extension for my burp suite but i 'm facing an issue related to following redirects properly in extension code. I 'm using Jython as development, and developing the extension in python. I have used a simple makeHTTPRequest from Extender API. It doesn't properly follows the redirects if one is there. Example: I have performed a request to URL which then returns a 301 and then 200 OK But my extension is only detecting/returning the 301 and not returning the final 200 OK response page. How do i achieve this? Your help is really appreciated. - Ahmed

Hannah, PortSwigger Agent | Last updated: Dec 06, 2021 09:23AM UTC

Hi Ahmed Following redirects automatically through use of the Extender API isn't supported. You would need to create this behavior yourself. There may be an existing extension that contains the functionality you are trying to implement. You can find the source code for all BApp Store extensions here: https://github.com/PortSwigger

Ahmed | Last updated: Dec 08, 2021 06:37AM UTC

Hi Hannah, Thanks for the response. I have manage to implement it.

You need to Log in to post a reply. Or register here, for free.