File tree 3 files changed +4
-6
lines changed
3 files changed +4
-6
lines changed Original file line number Diff line number Diff line change 29
29
import burp .IHttpRequestResponse ;
30
30
import burp .IHttpService ;
31
31
import burp .threadRequester ;
32
- import org .apache .tika .mime .MediaType ;
33
- import org .apache .tika .mime .MimeTypes ;
34
32
35
33
public class FindUrlAction implements ActionListener {
36
34
private IContextMenuInvocation invocation ;
Original file line number Diff line number Diff line change @@ -197,7 +197,9 @@ public List<String> getAllUrlsOfTarget() {
197
197
public String choseBaseUrlToRequest (List <String > allUrlsOfTarget ) {
198
198
String referUrl = getReferUrl ();
199
199
String currentUrl = getFullUrl ();
200
- return FindUrlAction .choseAndEditBaseURL (allUrlsOfTarget ,referUrl ,currentUrl );
200
+ String baseUrl = FindUrlAction .choseAndEditBaseURL (allUrlsOfTarget ,referUrl ,currentUrl );
201
+ ((InfoPanelHeadPanel )(InfoPanel .getHeadPanel ())).setBaseUrl (baseUrl .trim ());
202
+ return baseUrl ;
201
203
}
202
204
/**
203
205
* 从已有记录中直接获取【构建URL所需要的基准URL(BaseURL)】,或者从数据包中查找并选择
@@ -213,6 +215,7 @@ public String getOrFindBaseUrl() {
213
215
FindUrlAction .httpServiceBaseUrlMap .put (originUrl , baseurl );
214
216
}
215
217
}
218
+ ((InfoPanelHeadPanel )(InfoPanel .getHeadPanel ())).setBaseUrl (baseurl .trim ());
216
219
return baseurl ;
217
220
}
218
221
Original file line number Diff line number Diff line change @@ -45,7 +45,6 @@ public void actionPerformed(ActionEvent actionEvent) {
45
45
46
46
if (StringUtils .isNotEmpty (originUrl ) && StringUtils .isNotEmpty (baseurl )) {
47
47
FindUrlAction .httpServiceBaseUrlMap .put (originUrl , baseurl );
48
- ((InfoPanelHeadPanel )(InfoPanel .getHeadPanel ())).setBaseUrl (baseurl );
49
48
}
50
49
}
51
50
});
@@ -61,9 +60,7 @@ public void actionPerformed(ActionEvent actionEvent) {
61
60
62
61
if (StringUtils .isNotEmpty (originUrl ) && StringUtils .isNotEmpty (baseurl )) {
63
62
FindUrlAction .httpServiceBaseUrlMap .put (originUrl , baseurl );
64
- ((InfoPanelHeadPanel )(InfoPanel .getHeadPanel ())).setBaseUrl (baseurl );
65
63
}
66
-
67
64
}
68
65
});
69
66
You can’t perform that action at this time.
0 commit comments