-
Notifications
You must be signed in to change notification settings - Fork 47
Expand file tree
/
Copy pathJavaSerialKillerTab.java
More file actions
42 lines (27 loc) · 993 Bytes
/
JavaSerialKillerTab.java
File metadata and controls
42 lines (27 loc) · 993 Bytes
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
package burp;
import java.awt.*;
import javax.swing.*;
public class JavaSerialKillerTab implements ITab {
private final JTabbedPane tabs;
private final IBurpExtenderCallbacks callbacks;
static int tabCount = 0;
static int removedTabCount = 0;
public JavaSerialKillerTab(final IBurpExtenderCallbacks callbacks) {
this.callbacks = callbacks;
tabs = new JTabbedPane();
callbacks.customizeUiComponent(tabs);
callbacks.addSuiteTab(JavaSerialKillerTab.this);
}
public ChildTab createTab(String title, IHttpRequestResponse requestResponse) {
ChildTab sktab = new ChildTab((callbacks), tabs, title, requestResponse.getRequest(), requestResponse.getHttpService());
tabs.setSelectedIndex(tabCount - removedTabCount);
tabCount++;
return sktab;
}
public String getTabCaption() {
return "Java Serial Killer";
}
public Component getUiComponent() {
return tabs;
}
}