Skip to content
This repository was archived by the owner on Jun 24, 2025. It is now read-only.

Commit bfdb8ac

Browse files
author
vaycore
committed
修复扫描时请求包出现-1的问题;更新版本号为1.2.1
1 parent 624f248 commit bfdb8ac

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
<groupId>burp.vaycore</groupId>
88
<artifactId>onescan</artifactId>
9-
<version>1.2.0</version>
9+
<version>1.2.1</version>
1010

1111
<properties>
1212
<plugin.name>OneScan</plugin.name>

src/main/java/burp/BurpExtender.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -454,7 +454,7 @@ private void doBurpRequest(IHttpService service, byte[] reqRawBytes, String from
454454
sWaitTasks.removeElement(url);
455455
}
456456
// 发起请求
457-
IHttpRequestResponse newReqResp = mCallbacks.makeHttpRequest(service, reqRawBytes, true);
457+
IHttpRequestResponse newReqResp = mCallbacks.makeHttpRequest(service, reqRawBytes);
458458
Logger.debug("Request result url: %s", url);
459459
// HaE提取信息
460460
HaE.processHttpMessage(newReqResp);
@@ -504,6 +504,10 @@ private byte[] handleHeader(IHttpRequestResponse httpReqResp, String pathWithQue
504504
if (excludeHeader.contains(key)) {
505505
continue;
506506
}
507+
// 如果是扫描的请求,将 Content-Length 排除
508+
if (from.equals("Scan") && "Content-Length".equals(key)) {
509+
continue;
510+
}
507511
// 检测配置中是否存在当前请求头KEY
508512
List<String> matchList = configHeader.stream().filter(configHeaderItem -> {
509513
if (StringUtils.isNotEmpty(configHeaderItem) && configHeaderItem.contains(": ")) {

src/main/java/burp/vaycore/onescan/common/Constants.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ public interface Constants {
99

1010
// 插件信息
1111
String PLUGIN_NAME = "OneScan";
12-
String PLUGIN_VERSION = "1.2.0";
12+
String PLUGIN_VERSION = "1.2.1";
1313
boolean DEBUG = false;
1414

1515
// 插件启动显示的信息

0 commit comments

Comments
 (0)