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

Macro Items Returning Null

Nsovo | Last updated: Nov 01, 2022 10:13AM UTC

I'm trying to create a Burp Extension that uses values retrieved from a macro, however, macroItems[0].getResponse() returns null. Has anyone come across this error? If so, do you know how to fix it in python? I'm running Jython 2.7.3 and running Burp Professional v2022.8.5

Hannah, PortSwigger Agent | Last updated: Nov 01, 2022 11:34AM UTC

Hi. Have you had a look at this example extension: https://github.com/PortSwigger/example-custom-session-tokens/blob/master/python/SessionTokens.py

Nsovo | Last updated: Nov 01, 2022 12:04PM UTC

Thanks for the reply, Hannah. This is the example I'm using. I'm just not sure if the macro is returning a result. I can get the request but not the response. Which is odd Some context. I have a GET request in my macro which is supposed to return a jwt. I have confirmed that single GET request works but doesn't seem to return anything within the extension

Hannah, PortSwigger Agent | Last updated: Nov 03, 2022 11:12AM UTC