Skip to content

Commit 3dc0f4a

Browse files
committed
fix a bug
fix a bug
1 parent f11afbe commit 3dc0f4a

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

src/burp/BurpExtender.java

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public class BurpExtender implements IBurpExtender, ITab, IContextMenuFactory, I
3434
private IExtensionHelpers helpers;
3535

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

4040
private String imgName;
@@ -183,13 +183,13 @@ public void actionPerformed(ActionEvent e)
183183

184184
GUI.imgRequestRaws.setText(new String(imgMessageInfo.getRequest())); //在GUI中显示这个请求信息。
185185

186-
//IHttpService httpservice =imgMessageInfo.getHttpService();
187-
//String host = httpservice.getHost();
188-
//int port = httpservice.getPort();
189-
//String protocol = httpservice.getProtocol();
190-
191-
192-
GUI.imgHttpService.setText(imgMessageInfo.getHttpService().toString());
186+
IHttpService httpservice =imgMessageInfo.getHttpService();
187+
String host = httpservice.getHost();
188+
int port = httpservice.getPort();
189+
String protocol = httpservice.getProtocol();
190+
String shortUrl = protocol+"://"+host+":"+port;
191+
192+
GUI.imgHttpService.setText(shortUrl);
193193

194194
}
195195
catch (Exception e1)

src/custom/GUI.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
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.4 by bit4";
61+
private String ExtenderName = "reCAPTCHA v0.5 by bit4";
6262
private String github = "https://github.com/bit4woo/reCAPTCHA";
6363
private String Abouttypeid = "http://www.ysdm.net/home/PriceType";
6464

0 commit comments

Comments
 (0)