Skip to content

Commit

Permalink
update 1.5.4
Browse files Browse the repository at this point in the history
  • Loading branch information
F6JO committed Jun 14, 2024
1 parent ebce8cb commit eccb341
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 3 deletions.
22 changes: 21 additions & 1 deletion src/main/java/burp/BurpExtender.java
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public class BurpExtender implements IBurpExtender, IScannerCheck, IContextMenuF
public boolean DomainScan = false;
public static String Download_Yaml_protocol = "https";

public static String VERSION = "1.5.3";
public static String VERSION = "1.5.4";
public static String Download_Yaml_host = "raw.githubusercontent.com";
public static int Download_Yaml_port = 443;
public static String Download_Yaml_file = "/F6JO/RouteVulScan/main/Config_yaml.yaml";
Expand Down Expand Up @@ -244,6 +244,26 @@ public void actionPerformed(ActionEvent e) {
}
});

}else {
for (IHttpRequestResponse i : RequestResponses) {
try {
IHttpService Http_Service = i.getHttpService();
IRequestInfo RequestInfo = burp.help.analyzeRequest(Http_Service, i.getRequest());
String host_url = RequestInfo.getUrl().getProtocol() + "://" + RequestInfo.getUrl().getHost();
IHttpRequestResponse[] aaaa = burp.call.getSiteMap(host_url);
for (IHttpRequestResponse xxx : aaaa) {
// String Root_Url = Http_Service.getProtocol() + "://" + Http_Service.getHost() + ":" + String.valueOf(Http_Service.getPort());
// URL url = new URL(Root_Url + burp.help.analyzeRequest(xxx).getUrl().getPath());
BurpAnalyzedRequest Root_Request = new BurpAnalyzedRequest(burp.call, xxx);
start_send send = new start_send(burp, Root_Request,null);
send.start();
}

} catch (Exception exception) {
exception.printStackTrace();
}

}
}


Expand Down
6 changes: 4 additions & 2 deletions src/main/java/func/vulscan.java
Original file line number Diff line number Diff line change
Expand Up @@ -47,12 +47,14 @@ public vulscan(BurpExtender burp, BurpAnalyzedRequest Root_Request,byte[] reques
//将POST切换为GET请求
request = this.help.toggleRequestMethod(request);
// 获取所有参数
List<IParameter> Parameters = this.help.analyzeRequest(request).getParameters();
IRequestInfo iRequestInfo = this.help.analyzeRequest(request);
List<IParameter> Parameters = iRequestInfo.getParameters();
// 判断参数列表不为空
if (!Parameters.isEmpty())
for (IParameter parameter : Parameters)
// 删除所有参数
request = this.help.removeParameter(request, parameter);

// 创建新的请求类
// IHttpRequestResponse newHttpRequestResponse = this.call.makeHttpRequest(httpService, request);
IHttpRequestResponse newHttpRequestResponse = Root_Request.requestResponse();
Expand All @@ -63,7 +65,7 @@ public vulscan(BurpExtender burp, BurpAnalyzedRequest Root_Request,byte[] reques
String[] domainNames = vulscan.AnalysisHost(headMap.get("Host"));


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

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

0 comments on commit eccb341

Please sign in to comment.