Burp Suite User Forum

Create new post

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

If you "test" your macro, does your initial item have a response? Could you send us some screenshots or a video recording of this behavior to support@portswigger.net?

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