Name is required.
Email address is required.
Invalid email address
Answer is required.
Exceeding max length of 5KB

Burp main jframe

Mehrdad Aug 24, 2017 01:25PM UTC

Where can I access a reference to Burp's main JFrame?
It's required for displaying JDialogs relative to it.


Paul Johnston Aug 24, 2017 02:20PM UTC Support Center agent

Hi Mehrdad,

Thanks for your inquiry.

If your extension implements ITab, the component you return from getUiComponent() is added to the hierarchy, and you can use getParent() repeatedly to get to the frame.

Perhaps there should be a dedicated API method for this. We’ll discuss that internally and get back to you.


Paul Johnston Aug 25, 2017 03:26PM UTC Support Center agent

Hi,

I think we are going to add this, but not until we do a more major refactor of the API.

In the meantime, if you don’t have an ITab, you can use this code:

    Frame getBurpFrame() 
    {
        for(Frame f : Frame.getFrames())
        {
            if(f.isVisible() && f.getTitle().startsWith(("Burp Suite")))
            {
                return f;
            }
        }
    }

Mehrdad Sep 04, 2017 06:40AM UTC
Thanks for response. :)

Post Your public answer

Your name
Your email address
Answer