Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

java.lang.Exception: Command [class_file:/tmp/class/a.class] not supported #14

Open
TheCryingGame opened this issue Feb 10, 2023 · 4 comments

Comments

@TheCryingGame
Copy link

java -jar ysoserial-for-woodpecker-0.5.2.jar -g CommonsCollections5 -a "class_file:/tmp/class/a.class"
Error while generating or serializing payload
java.lang.Exception: Command [class_file:/tmp/class/a.class] not supported
at me.gv7.woodpecker.yso.payloads.custom.CommonsCollectionsUtil.getTransformerList(CommonsCollectionsUtil.java:206)
at me.gv7.woodpecker.yso.payloads.CommonsCollections5.getObject(CommonsCollections5.java:61)
at me.gv7.woodpecker.yso.payloads.CommonsCollections5.getObject(CommonsCollections5.java:49)
at me.gv7.woodpecker.yso.GeneratePayload.main(GeneratePayload.java:65)

@c0ny1
Copy link
Contributor

c0ny1 commented Feb 11, 2023

报错是正常的,cc5没有class_file,要执行代码可以尝试bcel_class_file或script

@TheCryingGame
Copy link
Author

报错是正常的,cc5没有class_file,要执行代码可以尝试bcel_class_file或script

师傅是整个cc链没有class_file还是只有单独的几个才有,能标注出来吗

@c0ny1
Copy link
Contributor

c0ny1 commented Feb 14, 2023

是部分cc链没有,这个目前还没有想好如何标注,只能运行看,不支持就会提示not supported。

@TheCryingGame
Copy link
Author

是部分cc链没有,这个目前还没有想好如何标注,只能运行看,不支持就会提示not supported。

明白了,希望师傅以后能完善QAQ

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants