Understand the output format in gadget-chains.txt
mainThe tool outputs discovered gadget chains to gadget-chains.txt. Each chain is represented as a sequence of method calls. The numbers in parentheses indicate the depth or index within the chain.
Example output structure:
com/package/Class.method(Ljava/lang/Object;...) (-1)
com/package/Class.method(Ljava/lang/Object;...) (0)
org/apache/package/Class.method(Ljava/lang/Object;...) (0)In these chains, the tool identifies entry points (like readObject or InvocationHandler implementations) and follows the flow to 'sinks' (like Method.invoke()) where attacker-controlled data can trigger dangerous actions.