IMessageEditorTab check Tool
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().
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.
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?
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 BurpExtender.java in the Hackvertor extension. We wouldn’t recommend this but it could provide the functionality that you are looking for.