Burp Suite User Forum

Create new post

Calling callbacks.exitSuite(false) causes extension that called it not be loaded next time

David | Last updated: Apr 21, 2020 11:41PM UTC

Hi, I'm making an extension at the moment, and one of the things I would like to do is be able to nicely exit burp in specific conditions. When calling callbacks.exitSuite(false), burp does exit nicely, but the next time I start burp, my extension is loaded, but not enabled. As part of my startup paramters, I am also loading a user config json that includes the following. "extensions":[ { "errors":"ui", "extension_file":"<path_to_burp_extension>", "extension_type":"java", "loaded":true, "name":"<extension name>", "output":"ui" } ] Is there a way of existing nicely without unloading the extension? I can run a System.exit(0);, which does exit, and the extension does load next time, but it leaves temporary files, and who knows what other mess. Thanks

David | Last updated: Apr 21, 2020 11:44PM UTC

Sorry, I'm just putting a second response to this, I realised that I got the terms "loaded" and "enabled" a bit confused. The extension will appear in the extensions list(eg it appears in the Burp Extnesions list), but the "loaded" tick box is not ticked after a exit using the callbacks.exitSuite(false)

Hannah, PortSwigger Agent | Last updated: Apr 22, 2020 11:22AM UTC

To clarify, even with the user config file being included as part of the startup arguments, your extension is still not loaded? After installing and loading your extension and before your extension closes Burp Suite, did you manually close it yourself (confirming that you want to close all windows)?

David | Last updated: Apr 23, 2020 12:52AM UTC

Hi Hannah, Thanks for your response, I've got it sorted, I think I just needed to walk away and come back the next day. I spent a bit more time this morning looking at this, and I had two problems, one with my json file, and one with using the --config-file="" option instead of the --user-config-file="".

Hannah, PortSwigger Agent | Last updated: Apr 23, 2020 11:04AM UTC

Hi David I'm glad you resolved your issue. Best of luck with the rest of your extension! If you have any further queries, please let us know.

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