Skip to content

Commit 16d338f

Browse files
committed
修正配置框标题,设置项名称以及更正banner信息
1 parent 19bdb60 commit 16d338f

File tree

2 files changed

+9
-6
lines changed

2 files changed

+9
-6
lines changed

src/burp/BurpExtender.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
public class BurpExtender implements IBurpExtender,IHttpListener,IProxyListener {
1111
private IBurpExtenderCallbacks callbacks;
1212
private IExtensionHelpers helpers;
13-
private String extensionName = "chunked-converter";
13+
private String extensionName = "Chunked coding converter";
1414
private String version ="0.1";
1515
private PrintWriter stdout;
1616
private PrintWriter stderr;

src/burp/ConfigDlg.java

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@ public class ConfigDlg extends JDialog {
1010
private final JPanel topPanel = new JPanel();
1111
private final JPanel centerPanel = new JPanel();
1212
private final JPanel bottomPanel = new JPanel();;
13-
private final JLabel lbSplitLen = new JLabel("Split length:");;
13+
private final JLabel lbSplitLen = new JLabel("Length of chunked:");;
1414
private final JSpinner spSplitLen = new JSpinner(new SpinnerNumberModel(2, 1, 100, 1));
1515
private final JLabel lbRange = new JLabel("(1-100)");
16-
private final JCheckBox cbComment = new JCheckBox("Is Comment");
16+
private final JCheckBox cbComment = new JCheckBox("Add comments");
1717
private final JLabel lbActOnModel = new JLabel("Act on:");
1818
private final JCheckBox chkAllTools = new JCheckBox("All Tools");
1919
private final JCheckBox chkSpider = new JCheckBox("Spider");
@@ -24,13 +24,15 @@ public class ConfigDlg extends JDialog {
2424
private final JCheckBox chkProxy = new JCheckBox("Proxy");
2525
private final JCheckBox chkExtender = new JCheckBox("Extender");
2626
private final JCheckBox chkTarget = new JCheckBox("Target");
27-
private final JButton btCancel = new JButton("Cancel");
2827
private final JButton btSave = new JButton("Save");
28+
private final JButton btCancel = new JButton("Cancel");
29+
2930

3031
public ConfigDlg(){
3132
initGUI();
3233
initEvent();
3334
initValue();
35+
this.setTitle("Chunked coding converter config");
3436
}
3537
private void initGUI(){
3638
topPanel.setLayout(new FlowLayout(FlowLayout.LEFT));
@@ -53,16 +55,17 @@ private void initGUI(){
5355
centerPanel.add(chkExtender);
5456

5557
bottomPanel.setLayout(new FlowLayout(FlowLayout.CENTER));
56-
bottomPanel.add(btCancel);
5758
bottomPanel.add(btSave);
59+
bottomPanel.add(btCancel);
5860

5961
mainPanel.setLayout(new BorderLayout());
6062
mainPanel.add(topPanel,BorderLayout.NORTH);
6163
mainPanel.add(centerPanel,BorderLayout.CENTER);
6264
mainPanel.add(bottomPanel,BorderLayout.SOUTH);
6365

6466
this.setModal(true);
65-
this.setSize(580,140);
67+
this.setSize(640,150);
68+
//this.setSize(mainPanel.getWidth(),mainPanel.getHeight());
6669
Dimension screensize=Toolkit.getDefaultToolkit().getScreenSize();
6770
this.setBounds(screensize.width/2-this.getWidth()/2,screensize.height/2-this.getHeight()/2,this.getWidth(),this.getHeight());
6871
this.setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);

0 commit comments

Comments
 (0)