Burp Suite User Forum

Create new post

CONTEXT_TARGET_SITE_MAP_TABLE is never accessible from IContextMenuFactory

Gabriele | Last updated: Dec 08, 2020 09:36AM UTC

I am developing a Python extension that uses IContextMenuFactory. I would like to add a menu item for the following contexts: CONTEXT_TARGET_SITE_MAP_TABLE and CONTEXT_TARGET_SITE_MAP_TREE. In theory CONTEXT_TARGET_SITE_MAP_TABLE should be available when the sitemap is empty, and CONTEXT_TARGET_SITE_MAP_TREE is available when the sitemap contains at least one element. If the above statement is correct, there is a problem with CONTEXT_TARGET_SITE_MAP_TABLE: it is never accessible. To reproduce the problem just write a simple extension in python that prints IContextMenuInvocation / getInvocationContext() from createMenuItems(). Thanks, Gabriele

Hannah, PortSwigger Agent | Last updated: Dec 08, 2020 01:21PM UTC

Hi Gabriele Could you check whether CONTEXT_TARGET_SITE_MAP_TABLE refers to the "Contents" table on the Site Map tab, rather than an empty tree panel?

Gabriele | Last updated: Dec 10, 2020 10:48AM UTC

Hi, it looks the same context, so don't works.

Hannah, PortSwigger Agent | Last updated: Dec 11, 2020 04:11PM UTC

Hi, Would you be able to drop us an email at support@portswigger.net with your code sample, so we can take a look and try to replicate this, please?

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