File tree Expand file tree Collapse file tree 7 files changed +499
-11
lines changed
CodeAudittutorial/3-JavaVul Expand file tree Collapse file tree 7 files changed +499
-11
lines changed Original file line number Diff line number Diff line change @@ -72,7 +72,6 @@ sticky: "1"
7272例如想要对Person类进行序列化和反序列化操作:
7373
7474``` java
75- package com.hillstonenet ;
7675
7776import java.io.Serializable ;
7877
@@ -86,12 +85,9 @@ class Person implements Serializable {
8685}
8786```
8887
89- ```
9088
91- ```
9289
9390``` java
94- package com.hillstonenet ;
9591
9692import java.io.* ;
9793import java.lang.reflect.InvocationTargetException ;
@@ -118,8 +114,6 @@ Person对象->Object类型水管->File类型水管->文件
118114Person对象->Object类型水管->byte类型水管->byte数组
119115```
120116
121-
122-
123117** 查看序列化后的内容:**
124118
125119```
@@ -137,7 +131,6 @@ java -jar SerializationDumper-v1.13.jar -r person.out
137131把` Output ` 换为了` Input ` ,把` writeObject ` 换为了` readObject ` 。
138132
139133``` java
140- package com.hillstonenet ;
141134
142135import java.io.* ;
143136import java.lang.reflect.InvocationTargetException ;
@@ -210,7 +203,6 @@ public class Main {
210203#### URLDNS链
211204
212205``` java
213- package com.hillstonenet ;
214206
215207import java.io.* ;
216208import java.lang.reflect.Field ;
@@ -247,8 +239,6 @@ public class URLDNS {
247239也可以查看下序列化后的1.txt
248240
249241```
250- PS D:\hillstone\A&DLab\实验室培训\攻防实验室培训_反序列化_宋晓萌\SerializableDemo> java -jar .\SerializationDumper-v1.13.jar -r 1.txt
251-
252242STREAM_MAGIC - 0xac ed
253243STREAM_VERSION - 0x00 05
254244Contents
You can’t perform that action at this time.
0 commit comments