Skip to content

Commit 510e8fe

Browse files
committed
update API Config
update API Config, make it more simple
1 parent 0d69f16 commit 510e8fe

File tree

3 files changed

+37
-6
lines changed

3 files changed

+37
-6
lines changed

src/burp/BurpExtender.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ public class BurpExtender implements IBurpExtender, ITab, IContextMenuFactory, I
3333
private IExtensionHelpers helpers;
3434

3535
public PrintWriter stdout;//现在这里定义变量,再在registerExtenderCallbacks函数中实例化,如果都在函数中就只是局部变量,不能在这实例化,因为要用到其他参数。
36-
private String ExtenderName = "reCAPTCHA v0.2 by bit4";
36+
private String ExtenderName = "reCAPTCHA v0.3 by bit4";
3737
private String github = "https://github.com/bit4woo/reCAPTCHA";
3838

3939
private String imgName;

src/custom/GUI.java

Lines changed: 34 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,9 @@
5858
//public class GUI extends JFrame { //change 1 for test
5959
public class GUI extends JPanel {//change 1 for burp
6060

61-
private String ExtenderName = "reCAPTCHA v0.2 by bit4";
61+
private String ExtenderName = "reCAPTCHA v0.3 by bit4";
6262
private String github = "https://github.com/bit4woo/reCAPTCHA";
63+
private String Abouttypeid = "http://www.ysdm.net/home/PriceType";
6364

6465
private JPanel contentPane;
6566
private JPanel panel_2;
@@ -85,6 +86,7 @@ public class GUI extends JPanel {//change 1 for burp
8586
private JPanel panel_6;
8687
private JPanel panel_7;
8788
private JTextField imgPath;
89+
private JLabel lblAboutTypeid;
8890

8991
/**
9092
* Launch the application.
@@ -227,6 +229,35 @@ public void actionPerformed(ActionEvent arg0) {
227229
}
228230
}
229231
});
232+
233+
lblAboutTypeid = new JLabel("About Typeid ?");
234+
lblAboutTypeid.setHorizontalAlignment(SwingConstants.LEFT);
235+
lblAboutTypeid.setFont(new Font("ËÎÌå", Font.BOLD, 12));
236+
lblAboutTypeid.addMouseListener(new MouseAdapter() {
237+
@Override
238+
public void mouseClicked(MouseEvent e) {
239+
try {
240+
URI uri = new URI(Abouttypeid);
241+
Desktop desktop = Desktop.getDesktop();
242+
if(Desktop.isDesktopSupported()&&desktop.isSupported(Desktop.Action.BROWSE)){
243+
desktop.browse(uri);
244+
}
245+
} catch (Exception e2) {
246+
// TODO: handle exception
247+
//callbacks.printError(e2.getMessage());
248+
}
249+
250+
}
251+
@Override
252+
public void mouseEntered(MouseEvent e) {
253+
lblAboutTypeid.setForeground(Color.BLUE);
254+
}
255+
@Override
256+
public void mouseExited(MouseEvent e) {
257+
lblAboutTypeid.setForeground(Color.BLACK);
258+
}
259+
});
260+
panel_5.add(lblAboutTypeid);
230261
panel_5.add(btnRequestAPI);
231262
btnRequestAPI.setHorizontalAlignment(SwingConstants.LEFT);
232263

@@ -246,11 +277,11 @@ public void actionPerformed(ActionEvent arg0) {
246277
@Override
247278
public void focusLost(FocusEvent arg0) {
248279
if (APIRequestRaws.getText().equals("")) {
249-
APIRequestRaws.setText("username=%s&password=%s&typeid=%s&timeout=%s&softid=%s&softkey=%s");
280+
APIRequestRaws.setText("username=%s&password=%s&typeid=%s");
250281
}
251282
}
252283
});
253-
APIRequestRaws.setText("username=%s&password=%s&typeid=%s&timeout=%s&softid=%s&softkey=%s");
284+
APIRequestRaws.setText("username=%s&password=%s&typeid=%s");
254285
panel_4.add(APIRequestRaws);
255286
APIRequestRaws.setLineWrap(true);
256287

src/custom/myYunSu.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ public static HashMap<String,String> getConfig(String paraString) {
3535
public static String getCode(String imagePath,String paraString) {//GEN-FIRST:event_jButton1ActionPerformed
3636
//
3737
HashMap<String,String> paraMap = getConfig(paraString);
38-
String softid = paraMap.get("softid");
39-
String softkey = paraMap.get("softkey");
38+
String softid = "66182";
39+
String softkey = "d1003debf03b488fae7064b48f5b6ef8";
4040
String typeid = paraMap.get("typeid");
4141

4242
String username = paraMap.get("username");

0 commit comments

Comments
 (0)