Closed passwa11 closed 6 months ago
➜ JYso java -jar JYso-1.2.9.jar -y -g CommonsBeanutils4 -p 'EX-TomcatEcho'
Error while generating or serializing payload
java.lang.Exception: Command format is: [rmi|ldap]://host:port/obj
at com.qi4l.jndi.gadgets.CommonsBeanutils4.getObject(CommonsBeanutils4.java:18)
at com.qi4l.jndi.controllers.ysoserial.ysoserial(ysoserial.java:134)
at com.qi4l.jndi.Starter.main(Starter.java:29)
➜ JYso java -jar JYso-1.2.9.jar -y -g CommonsBeanutils2 -p 'EX-TomcatEcho'
Error while generating or serializing payload
java.lang.NullPointerException
at java.base/java.lang.String.<init>(String.java:614)
at com.qi4l.jndi.gadgets.utils.Utils.base64Decode(Utils.java:63)
at com.qi4l.jndi.gadgets.utils.handle.ClassMethodHandler.insertCMD(ClassMethodHandler.java:220)
at com.qi4l.jndi.gadgets.utils.handle.ClassMethodHandler.insertKeyMethodByClassName(ClassMethodHandler.java:40)
at com.qi4l.jndi.gadgets.utils.handle.GlassHandler.generateClass(GlassHandler.java:105)
at com.qi4l.jndi.gadgets.utils.handle.GlassHandler.generateClass(GlassHandler.java:64)
at com.qi4l.jndi.gadgets.utils.Gadgets.createTemplatesImpl(Gadgets.java:96)
at com.qi4l.jndi.gadgets.CommonsBeanutils2.getObject(CommonsBeanutils2.java:29)
at com.qi4l.jndi.controllers.ysoserial.ysoserial(ysoserial.java:134)
at com.qi4l.jndi.Starter.main(Starter.java:29)
➜ JYso java -jar JYso-1.2.9.jar -y -g CommonsBeanutils1 -p 'EX-TomcatEcho'
Error while generating or serializing payload
java.lang.NullPointerException
at java.base/java.lang.String.<init>(String.java:614)
at com.qi4l.jndi.gadgets.utils.Utils.base64Decode(Utils.java:63)
at com.qi4l.jndi.gadgets.utils.handle.ClassMethodHandler.insertCMD(ClassMethodHandler.java:220)
at com.qi4l.jndi.gadgets.utils.handle.ClassMethodHandler.insertKeyMethodByClassName(ClassMethodHandler.java:40)
at com.qi4l.jndi.gadgets.utils.handle.GlassHandler.generateClass(GlassHandler.java:105)
at com.qi4l.jndi.gadgets.utils.handle.GlassHandler.generateClass(GlassHandler.java:64)
at com.qi4l.jndi.gadgets.utils.Gadgets.createTemplatesImpl(Gadgets.java:96)
at com.qi4l.jndi.gadgets.CommonsBeanutils1.getObject(CommonsBeanutils1.java:17)
at com.qi4l.jndi.controllers.ysoserial.ysoserial(ysoserial.java:134)
at com.qi4l.jndi.Starter.main(Starter.java:29)
➜ JYso java -jar JYso-1.2.9.jar -y -g CommonsCollections10 -p 'EX-TomcatEcho'
Error while generating or serializing payload
java.lang.NullPointerException
at java.base/java.lang.String.<init>(String.java:614)
at com.qi4l.jndi.gadgets.utils.Utils.base64Decode(Utils.java:63)
at com.qi4l.jndi.gadgets.utils.handle.ClassMethodHandler.insertCMD(ClassMethodHandler.java:220)
at com.qi4l.jndi.gadgets.utils.handle.ClassMethodHandler.insertKeyMethodByClassName(ClassMethodHandler.java:40)
at com.qi4l.jndi.gadgets.utils.handle.GlassHandler.generateClass(GlassHandler.java:105)
at com.qi4l.jndi.gadgets.utils.handle.GlassHandler.generateClass(GlassHandler.java:64)
at com.qi4l.jndi.gadgets.utils.Gadgets.createTemplatesImpl(Gadgets.java:96)
at com.qi4l.jndi.gadgets.CommonsCollections10.getObject(CommonsCollections10.java:24)
at com.qi4l.jndi.controllers.ysoserial.ysoserial(ysoserial.java:134)
at com.qi4l.jndi.Starter.main(Starter.java:29)
maybe change pro to maven will easy add an action yaml to auto test every release will be a well way to aviod this error ?
I haven't encountered any issues when using it locally. Please ensure that your JDK version is 1.8.
wow! dude I can run it with Java 8! I thought it would take some time to get your response, but I didn't expect it to be so quick. Thank you for your answer. Does it mean the project doesn't support Java 11?
In order to adapt to more extreme environments, I have lowered the compilation level to 1.6, but I'm not sure about the exceptions that may occur with JDK versions other than 1.6 and 1.8.
tha't all. thanks your work!