Skip to content

Commit dd8cc6d

Browse files
authored
Allow extenstion to be shown anywhere in burp
2 parents 5c63fc7 + 34f8ed4 commit dd8cc6d

1 file changed

Lines changed: 3 additions & 5 deletions

File tree

src/main/java/burp/BurpExtender.java

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -107,12 +107,10 @@ private void runScannerForRequest(IHttpRequestResponse iHttpRequestResponse) {
107107
public List<JMenuItem> createMenuItems(IContextMenuInvocation iContextMenuInvocation) {
108108
List<JMenuItem> items = new ArrayList<>();
109109

110-
if (IContextMenuInvocation.CONTEXT_TARGET_SITE_MAP_TABLE == iContextMenuInvocation.getInvocationContext() ||
111-
IContextMenuInvocation.CONTEXT_TARGET_SITE_MAP_TREE == iContextMenuInvocation.getInvocationContext() ||
112-
IContextMenuInvocation.CONTEXT_PROXY_HISTORY == iContextMenuInvocation.getInvocationContext()) {
113-
IHttpRequestResponse[] arr = iContextMenuInvocation.getSelectedMessages();
110+
IHttpRequestResponse[] selectedMessages = iContextMenuInvocation.getSelectedMessages();
111+
if (selectedMessages != null && selectedMessages.length > 0) {
114112
JMenuItem item = new JMenuItem("Web Cache Deception Test");
115-
MenuItemListener mil = new MenuItemListener(arr);
113+
MenuItemListener mil = new MenuItemListener(selectedMessages);
116114
item.addActionListener(mil);
117115
items.add(item);
118116
}

0 commit comments

Comments
 (0)