Skip to content

Commit eccb341

Browse files
committed
update 1.5.4
1 parent ebce8cb commit eccb341

2 files changed

Lines changed: 25 additions & 3 deletions

File tree

src/main/java/burp/BurpExtender.java

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public class BurpExtender implements IBurpExtender, IScannerCheck, IContextMenuF
4040
public boolean DomainScan = false;
4141
public static String Download_Yaml_protocol = "https";
4242

43-
public static String VERSION = "1.5.3";
43+
public static String VERSION = "1.5.4";
4444
public static String Download_Yaml_host = "raw.githubusercontent.com";
4545
public static int Download_Yaml_port = 443;
4646
public static String Download_Yaml_file = "/F6JO/RouteVulScan/main/Config_yaml.yaml";
@@ -244,6 +244,26 @@ public void actionPerformed(ActionEvent e) {
244244
}
245245
});
246246

247+
}else {
248+
for (IHttpRequestResponse i : RequestResponses) {
249+
try {
250+
IHttpService Http_Service = i.getHttpService();
251+
IRequestInfo RequestInfo = burp.help.analyzeRequest(Http_Service, i.getRequest());
252+
String host_url = RequestInfo.getUrl().getProtocol() + "://" + RequestInfo.getUrl().getHost();
253+
IHttpRequestResponse[] aaaa = burp.call.getSiteMap(host_url);
254+
for (IHttpRequestResponse xxx : aaaa) {
255+
// String Root_Url = Http_Service.getProtocol() + "://" + Http_Service.getHost() + ":" + String.valueOf(Http_Service.getPort());
256+
// URL url = new URL(Root_Url + burp.help.analyzeRequest(xxx).getUrl().getPath());
257+
BurpAnalyzedRequest Root_Request = new BurpAnalyzedRequest(burp.call, xxx);
258+
start_send send = new start_send(burp, Root_Request,null);
259+
send.start();
260+
}
261+
262+
} catch (Exception exception) {
263+
exception.printStackTrace();
264+
}
265+
266+
}
247267
}
248268

249269

src/main/java/func/vulscan.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,12 +47,14 @@ public vulscan(BurpExtender burp, BurpAnalyzedRequest Root_Request,byte[] reques
4747
//将POST切换为GET请求
4848
request = this.help.toggleRequestMethod(request);
4949
// 获取所有参数
50-
List<IParameter> Parameters = this.help.analyzeRequest(request).getParameters();
50+
IRequestInfo iRequestInfo = this.help.analyzeRequest(request);
51+
List<IParameter> Parameters = iRequestInfo.getParameters();
5152
// 判断参数列表不为空
5253
if (!Parameters.isEmpty())
5354
for (IParameter parameter : Parameters)
5455
// 删除所有参数
5556
request = this.help.removeParameter(request, parameter);
57+
5658
// 创建新的请求类
5759
// IHttpRequestResponse newHttpRequestResponse = this.call.makeHttpRequest(httpService, request);
5860
IHttpRequestResponse newHttpRequestResponse = Root_Request.requestResponse();
@@ -63,7 +65,7 @@ public vulscan(BurpExtender burp, BurpAnalyzedRequest Root_Request,byte[] reques
6365
String[] domainNames = vulscan.AnalysisHost(headMap.get("Host"));
6466

6567

66-
String[] paths = analyzeRequest.getUrl().getPath().split("/");
68+
String[] paths = analyzeRequest.getUrl().getPath().split("\\?",2)[0].split("/");
6769

6870
Map<String, Object> Yaml_Map = YamlUtil.readYaml(burp.Config_l.yaml_path);
6971
List<Map<String, Object>> Listx = (List<Map<String, Object>>) Yaml_Map.get("Load_List");

0 commit comments

Comments
 (0)