-
Notifications
You must be signed in to change notification settings - Fork 47
Expand file tree
/
Copy pathMenu.java
More file actions
62 lines (40 loc) · 1.5 KB
/
Menu.java
File metadata and controls
62 lines (40 loc) · 1.5 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
package burp;
import javax.swing.*;
import java.awt.event.MouseEvent;
import java.awt.event.MouseListener;
import java.util.ArrayList;
import java.util.List;
public class Menu implements IContextMenuFactory {
private IExtensionHelpers helpers;
private IBurpExtenderCallbacks callbacks;
private JavaSerialKillerTab tab;
JavaSerialKiller sk;
public Menu(IBurpExtenderCallbacks callbacks) {
helpers = callbacks.getHelpers();
this.callbacks = callbacks;
}
public List<JMenuItem> createMenuItems(final IContextMenuInvocation invocation) {
ArrayList<JMenuItem> menus = new ArrayList<JMenuItem>();
JMenuItem sendToSerialKiller = new JMenuItem("Send to Java Serial Killer");
sendToSerialKiller.addMouseListener(new MouseListener() {
public void mouseClicked(MouseEvent arg0) {
}
public void mouseEntered(MouseEvent arg0) {
}
public void mouseExited(MouseEvent arg0) {
}
public void mousePressed(MouseEvent arg0) {
}
public void mouseReleased(MouseEvent arg0) {
if (tab == null){
tab = new JavaSerialKillerTab(callbacks);
sk = new JavaSerialKiller(tab);
}
IHttpRequestResponse iReqResp = invocation.getSelectedMessages()[0];
sk.sendToTab(iReqResp);
}
});
menus.add(sendToSerialKiller);
return menus;
}
}