Burp Suite User Forum

Create new post

IMessageEditorTab check Tool

Chris | Last updated: 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(). Thanks

Rose, PortSwigger Agent | Last updated: Jul 03, 2019 08:19AM UTC

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, PortSwigger Agent | Last updated: Jul 17, 2019 07:31AM UTC

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?

Mike, PortSwigger Agent | Last updated: Oct 09, 2019 01:12PM UTC

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 BurpExtender.java in the Hackvertor extension. We wouldn't recommend this but it could provide the functionality that you are looking for.

Burp User | Last updated: 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. Thanks

Burp User | Last updated: 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 :)

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