Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
root
authored and
root
committed
Sep 6, 2018
1 parent
25458f8
commit b97cf16
Showing
11 changed files
with
164 additions
and
67 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
/build/ | ||
/dist/ | ||
/dist/ | ||
/nbproject/private/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
#Wed, 05 Sep 2018 02:06:11 +0500 | ||
#Fri, 07 Sep 2018 00:39:59 +0500 | ||
|
||
|
||
C\:\\Users\\bugzy\\Documents\\NetBeansProjects\\Burp_Plugins\\HackBar= |
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
/* | ||
* To change this license header, choose License Headers in Project Properties. | ||
* To change this template file, choose Tools | Templates | ||
* and open the template in the editor. | ||
*/ | ||
package burp; | ||
|
||
import java.awt.event.ActionListener; | ||
import javax.swing.JMenu; | ||
import javax.swing.JMenuItem; | ||
import javax.swing.JOptionPane; | ||
import javax.swing.JSeparator; | ||
|
||
/** | ||
* | ||
* @author abdul.wahab | ||
*/ | ||
public class Methods { | ||
|
||
public static JMenu add_MenuItem_and_listener(JMenu menu, String[] itemList, Object actionListener){ | ||
for(int i = 0; i < itemList.length; i++){ | ||
JMenuItem item = new JMenuItem(itemList[i]); | ||
item.addActionListener((ActionListener) actionListener); | ||
menu.add(item); | ||
} | ||
return menu; | ||
} | ||
|
||
public static JMenu Create_Main_Menu(JMenu MainMenu, String[] MainMenuItems, String[][] SubMenuItems, Object actionListener){ | ||
for(int i=0; i < MainMenuItems.length; i++){ | ||
JMenu menu = new JMenu(MainMenuItems[i]); | ||
menu = add_MenuItem_and_listener(menu, SubMenuItems[i], actionListener); | ||
if(MainMenuItems[i].equals("Basic Statements")){ | ||
MainMenu.add(new JSeparator()); | ||
MainMenu.add(menu); | ||
MainMenu.add(new JSeparator()); | ||
}else{ | ||
MainMenu.add(menu); | ||
} | ||
} | ||
return MainMenu; | ||
} | ||
|
||
public static String prompt_and_validate_input(String prompt, String str){ | ||
String user_input = JOptionPane.showInputDialog(prompt, str); | ||
while(user_input.trim().equals("")){ | ||
user_input = JOptionPane.showInputDialog(prompt, str); | ||
} | ||
return user_input.trim(); | ||
} | ||
|
||
public static byte[] do_modify_request(byte[] request, int[] selectedIndex, String modifiedString){ | ||
byte[] modString = modifiedString.getBytes(); | ||
byte[] newRequest = new byte[request.length + modifiedString.length() - (selectedIndex[1]-selectedIndex[0])]; | ||
System.arraycopy(request, 0, newRequest, 0, selectedIndex[0]); | ||
System.arraycopy(modString, 0, newRequest, selectedIndex[0], modString.length); | ||
System.arraycopy(request, selectedIndex[1], newRequest, selectedIndex[0]+modString.length, request.length-selectedIndex[1]); | ||
return newRequest; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.