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

IMessageEditorTab check Tool

Chris H Jul 02, 2019 11:46AM UTC

I'm trying to create a simple jython extension to run a regex against the HTTP response and extract key fields into a new IMessageEditorTab. Is there anyway in IMessageEditorTab.isEnabled or IMessageEditorTabFactory.createNewInstance to check which Tool you're in? I only want the tab created in Repeater (and ideally with a different regex per tab). On a big project it's killing burp :(

In IContextMenuFactory.createMenuItems I can get the current Tool from IContextMenuInvocation.getToolFlag().


Rose Krawczuk Jul 15, 2019 01:21PM UTC Support Center agent

Sorry we haven’t been able to get back to you sooner. We have a bit of a backlog in terms of Extensions issues. Please accept our apologies, we’ll get back to you as soon as we can.

Mike Eaton Oct 09, 2019 01:12PM UTC Support Center agent

Hi Chris,

We apologize for the delay in responding to your query, we have had a backlog of support tickets to process so we have only just got round to responding to your ticket.

From reading through the documentation there doesn’t appear to be any built-in methods to provide that information to you in those contexts. What problem are you trying to solve with obtaining which tool you are currently using?

Chris H Nov 19, 2019 03:47PM UTC
Hi. I've created a plugin to extract matches from responses using a regex, similar to the "Grep - Extract" option in Intruder. But I didn't want it to appear in every response window, just those in Repeater. It's not a big issue.


Mike Eaton Nov 21, 2019 11:35AM UTC Support Center agent

Hi Chris

Fair enough, unfortunately we don’t officially provide a mechanism to retrieve this information.

A potential workaround is that you can look through the Java Swing tree and look at the text names of the tabs in Burp Suite to figure out which tab you are currently in. There is an example of this at line 863 in in the Hackvertor extension. We wouldn’t recommend this but it could provide the functionality that you are looking for.

Chris H Nov 21, 2019 12:18PM UTC
Hi Mike. Thanks for the response. I don't think it's a significant enough issue to warrant that, but I'll bear it in mind :)

Post Your public answer

Your name
Your email address