MCPcopy Index your code
hub / github.com/chudyPB/XStream-Gadgets

github.com/chudyPB/XStream-Gadgets @main

Chat with this repo
repository ↗ · DeepWiki ↗ · + Follow
11 symbols 26 edges 4 files 0 documented · 0%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

README

This repo contains several ysoserial gadgets, transformed into the XStream serialization format.

Original repo: https://github.com/frohoff/ysoserial

Some gadgets are uploaded in form of .xml, which has to be manually edited for the desired effect. Several gadgets need to be generated using the provided Java class.

Ported gadgets

Gadget                  Author                                        Format      Info
------                  ------                                        ------      ------
URLDNS                  @gebl                                         XML
JRMPClient              @mbechler                                     XML
AspectJWeaver           @Jang                                         XML
CommonsBeanutils1       @frohoff                                      Java
CommonsCollections2     @frohoff                                      Java
CommonsCollections4     @frohoff                                      Java
CommonsCollections6     @matthias_kaiser                              XML
CommonsCollections7     @scristalli, @hanyrax, @EdoardoVignati        XML
C3P0                    @mbechler                                     XML
FileUpload1+            @mbechler + @chudypb bypass for 1.3.1/1.3.2   XML         Fully controlled file upload even for commons-fileupload 1.3.1 and 1.3.2

Dependencies

In order to run Java classes, you need:

  • xstream-1.4.17.jar (or any other version)
  • kxml2-2.3.0.jar
  • ysoserial.jar (see repo provided in the beginning of this README)

Core symbols most depended-on inside this repo

getObject
called by 1
gadgets/CommonsCollections2.java
getObject
called by 1
gadgets/CommonsBeanutils1.java
getObject
called by 1
gadgets/CommonsCollections4.java
main
called by 0
gadgets/CommonsCollections2.java
main
called by 0
gadgets/CommonsBeanutils1.java
main
called by 0
gadgets/CommonsCollections4.java

Shape

Method 7
Class 4

Languages

Java100%

Modules by API surface

gadgets/CommonsCollections4.java3 symbols
gadgets/CommonsCollections2.java3 symbols
gadgets/CommonsBeanutils1.java3 symbols
tests/test.java2 symbols

For agents

$ claude mcp add XStream-Gadgets \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact