| 152 | |
| 153 | |
| 154 | public void CGUI() { |
| 155 | |
| 156 | contentPane = new JPanel(); |
| 157 | contentPane.setBorder(new EmptyBorder(5, 5, 5, 5)); |
| 158 | contentPane.setLayout(new BorderLayout(0, 0)); |
| 159 | |
| 160 | |
| 161 | JPanel enableConfigPanel = new JPanel(); |
| 162 | enableConfigPanel.setBorder(new EtchedBorder(EtchedBorder.LOWERED, null, null)); |
| 163 | FlowLayout flowLayout = (FlowLayout) enableConfigPanel.getLayout(); |
| 164 | flowLayout.setAlignment(FlowLayout.LEFT); |
| 165 | contentPane.add(enableConfigPanel, BorderLayout.NORTH); |
| 166 | |
| 167 | |
| 168 | JPanel panel_3 = new JPanel(); |
| 169 | panel_3.setBorder(null); |
| 170 | enableConfigPanel.add(panel_3); |
| 171 | panel_3.setLayout(new FlowLayout(FlowLayout.CENTER, 5, 5)); |
| 172 | |
| 173 | JLabel enableFor = new JLabel("Enable For :"); |
| 174 | panel_3.add(enableFor); |
| 175 | |
| 176 | chckbxProxy = new JCheckBox("Proxy"); |
| 177 | panel_3.add(chckbxProxy); |
| 178 | |
| 179 | chckbxScanner = new JCheckBox("Scanner"); |
| 180 | panel_3.add(chckbxScanner); |
| 181 | |
| 182 | chckbxIntruder = new JCheckBox("Intruder"); |
| 183 | panel_3.add(chckbxIntruder); |
| 184 | |
| 185 | chckbxRepeater = new JCheckBox("Repeater"); |
| 186 | chckbxRepeater.setSelected(true); |
| 187 | panel_3.add(chckbxRepeater); |
| 188 | |
| 189 | JPanel panel_1 = new JPanel(); |
| 190 | panel_1.setBorder(new EtchedBorder(EtchedBorder.LOWERED, null, null)); |
| 191 | contentPane.add(panel_1, BorderLayout.SOUTH); |
| 192 | panel_1.setLayout(new FlowLayout(FlowLayout.LEFT, 5, 5)); |
| 193 | |
| 194 | JLabel lblNewLabel = new JLabel(extenderName+" https://github.com/bit4woo"); |
| 195 | lblNewLabel.addMouseListener(new MouseAdapter() { |
| 196 | @Override |
| 197 | public void mouseClicked(MouseEvent e) { |
| 198 | try { |
| 199 | URI uri = new URI("https://github.com/bit4woo"); |
| 200 | Desktop desktop = Desktop.getDesktop(); |
| 201 | if(Desktop.isDesktopSupported()&&desktop.isSupported(Desktop.Action.BROWSE)){ |
| 202 | desktop.browse(uri); |
| 203 | } |
| 204 | } catch (Exception e2) { |
| 205 | // TODO: handle exception |
| 206 | BurpExtender.this.callbacks.printError(e2.getMessage()); |
| 207 | } |
| 208 | |
| 209 | } |
| 210 | @Override |
| 211 | public void mouseEntered(MouseEvent e) { |