-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathBurpExtender.java
More file actions
58 lines (47 loc) · 1.9 KB
/
BurpExtender.java
File metadata and controls
58 lines (47 loc) · 1.9 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
package burp;
import java.io.PrintWriter;
import java.util.ArrayList;
import java.util.List;
import javax.swing.JMenu;
import javax.swing.JMenuItem;
/**
*
* @author errorfiathck
*/
public class BurpExtender implements IBurpExtender, IContextMenuFactory {
public String ExtensionName = "Hack Bar";
public String MenuName = "Hack Bar";
public IBurpExtenderCallbacks callbacks;
public IExtensionHelpers helpers;
public PrintWriter stdout;
public PrintWriter stderr;
public IContextMenuInvocation context;
public ArrayList menu_list;
public JMenu Hack_Bar_Menu;
@Override
public void registerExtenderCallbacks(IBurpExtenderCallbacks callbacks) {
this.callbacks = callbacks;
this.helpers = callbacks.getHelpers();
this.stdout = new PrintWriter(callbacks.getStdout(), true);
this.stderr = new PrintWriter(callbacks.getStderr(), true);
this.menu_list = new ArrayList();
this.Hack_Bar_Menu = new JMenu(this.MenuName);
this.Hack_Bar_Menu.add(new SQL_Menu(this));
this.Hack_Bar_Menu.add(new SQL_Error(this));
this.Hack_Bar_Menu.add(new SQli_LoginBypass(this));
this.Hack_Bar_Menu.add(new XSS_Menu(this));
this.Hack_Bar_Menu.add(new LFI_Menu(this));
this.Hack_Bar_Menu.add(new XXE_Menu(this));
this.Hack_Bar_Menu.add(new WebShell_Menu(this));
this.Hack_Bar_Menu.add(new Reverse_Shell_Menu(this));
// this.Hack_Bar_Menu.add(new Decoder_Encoder_Menu(this));
this.callbacks.setExtensionName(this.ExtensionName);
this.callbacks.registerContextMenuFactory(this);
}
@Override
public List<JMenuItem> createMenuItems(IContextMenuInvocation invocation) {
this.context = invocation;
menu_list.add(Hack_Bar_Menu);
return menu_list;
}
}