Burp Suite User Forum

Login to post

I can't install jython environments

Furkan | Last updated: Sep 09, 2021 12:40AM UTC

Exception in thread "main" java.lang.ExceptionInInitializerError at org.python.core.PySystemState.<clinit>(PySystemState.java:73) at org.python.util.jython.main(jython.java:533) Caused by: java.lang.IllegalArgumentException: Cannot create PyString with non-byte value at org.python.core.PyString.<init>(PyString.java:57) at org.python.core.PyString.<init>(PyString.java:70) at org.python.core.PyString.<init>(PyString.java:74) at org.python.core.Py.newString(Py.java:643) at org.python.core.PyJavaType.init(PyJavaType.java:543) at org.python.core.PyType$Registry.createType(PyType.java:477) at org.python.core.PyType$Registry.addFromClass(PyType.java:426) at org.python.core.PyType$Registry.resolveType(PyType.java:352) at org.python.core.PyType$Registry$1.computeValue(PyType.java:208) at org.python.core.PyType$Registry$1.computeValue(PyType.java:202) at java.base/java.lang.ClassValue.getFromHashMap(ClassValue.java:228) at java.base/java.lang.ClassValue.getFromBackup(ClassValue.java:210) at java.base/java.lang.ClassValue.get(ClassValue.java:116) at org.python.core.PyType.fromClass(PyType.java:2137) at org.python.core.PyObject.<init>(PyObject.java:85) at org.python.core.PySingleton.<init>(PySingleton.java:9) at org.python.core.PyNotImplemented.<init>(PyNotImplemented.java:10) at org.python.core.Py.<clinit>(Py.java:66) ... 2 more

Furkan | Last updated: Sep 09, 2021 02:12PM UTC

please help me

Ben, PortSwigger Agent | Last updated: Sep 09, 2021 06:28PM UTC

Hi Furkan, Apologies for the delay in getting back to you. Just to confirm, what Jython jar file have you added to the 'Location of Jython standalone JAR file' field under Extender -> Options -> Python Environment section within Burp? In addition to the above, do you see this error when you are installing any Python extension or is it just one in particular? If it is one in particular, what is the name of the extension? Finally, which version of Burp are you using?

Furkan | Last updated: Sep 09, 2021 09:22PM UTC

First of all, I am using Burp Suite Pro v201.8.2. And let me tell you everything I've done. As in the Portswigger description page, I downloaded the Jython-standalone-2.7.2.jar file and placed its location as described, but when I tried any extension I was getting an error like this. """ java.lang.ExceptionInInitializerError at org.python.util.PythonInterpreter.<init>(PythonInterpreter.java:99) at org.python.util.PythonInterpreter.<init>(PythonInterpreter.java:93) at org.python.util.PythonInterpreter.<init>(PythonInterpreter.java:70) at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:64) at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.base/java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:500) at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:481) at burp.b02.<init>(Unknown Source) at burp.c73.a(Unknown Source) at burp.igl.lambda$panelLoaded$0(Unknown Source) at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515) at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1130) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:630) at java.base/java.lang.Thread.run(Thread.java:832) Caused by: java.lang.IllegalArgumentException: Cannot create PyString with non-byte value at org.python.core.PyString.<init>(PyString.java:57) at org.python.core.PyString.<init>(PyString.java:70) at org.python.core.PyString.<init>(PyString.java:74) at org.python.core.Py.newString(Py.java:643) at org.python.core.PyJavaType.init(PyJavaType.java:543) at org.python.core.PyType$Registry.createType(PyType.java:477) at org.python.core.PyType$Registry.addFromClass(PyType.java:426) at org.python.core.PyType$Registry.resolveType(PyType.java:352) at org.python.core.PyType$Registry$1.computeValue(PyType.java:208) at org.python.core.PyType$Registry$1.computeValue(PyType.java:202) at java.base/java.lang.ClassValue.getFromHashMap(ClassValue.java:228) at java.base/java.lang.ClassValue.getFromBackup(ClassValue.java:210) at java.base/java.lang.ClassValue.get(ClassValue.java:116) at org.python.core.PyType.fromClass(PyType.java:2137) at org.python.core.PyObject.<init>(PyObject.java:85) at org.python.core.PySingleton.<init>(PySingleton.java:9) at org.python.core.PyNotImplemented.<init>(PyNotImplemented.java:10) at org.python.core.Py.<clinit>(Py.java:66) ... 16 more """ Then, I said I will install the installer package directly on the computer. I downloaded the installer package exactly as on the Jython download site and got an error while installing. """ Exception in thread "main" java.lang.ExceptionInInitializerError at org.python.core.PySystemState.<clinit>(PySystemState.java:73) at org.python.util.jython.main(jython.java:533) Caused by: java.lang.IllegalArgumentException: Cannot create PyString with non-byte value at org.python.core.PyString.<init>(PyString.java:57) at org.python.core.PyString.<init>(PyString.java:70) at org.python.core.PyString.<init>(PyString.java:74) at org.python.core.Py.newString(Py.java:643) at org.python.core.PyJavaType.init(PyJavaType.java:543) at org.python.core.PyType$Registry.createType(PyType.java:477) at org.python.core.PyType$Registry.addFromClass(PyType.java:426) at org.python.core.PyType$Registry.resolveType(PyType.java:352) at org.python.core.PyType$Registry$1.computeValue(PyType.java:208) at org.python.core.PyType$Registry$1.computeValue(PyType.java:202) at java.base/java.lang.ClassValue.getFromHashMap(ClassValue.java:228) at java.base/java.lang.ClassValue.getFromBackup(ClassValue.java:210) at java.base/java.lang.ClassValue.get(ClassValue.java:116) at org.python.core.PyType.fromClass(PyType.java:2137) at org.python.core.PyObject.<init>(PyObject.java:85) at org.python.core.PySingleton.<init>(PySingleton.java:9) at org.python.core.PyNotImplemented.<init>(PyNotImplemented.java:10) at org.python.core.Py.<clinit>(Py.java:66) ... 2 more """ I deleted everything and reinstalled but it didn't work.

Furkan | Last updated: Sep 09, 2021 09:24PM UTC

AnI can't install any Python extensions, not just an extension.

Ben, PortSwigger Agent | Last updated: Sep 10, 2021 08:23AM UTC

Hi Furkan, Are you able to send us an email at support@portswigger.net and include some screenshots of the following (having the screenshots will make it a lot easier to see exactly what is happening): - The Extender -> Options section within Burp - The Extender -> Extensions -> Errors screen when you have loaded the Autorize extension In addition to the above, can you confirm that you are loading extensions from the Extender -> BApp Store tab, by navigating to an extension and then clicking the 'Install' button or are you trying to perform a manual installation of the extensions?

Furkan | Last updated: Sep 11, 2021 01:49AM UTC

I sent everything to your email address, I hope it works.

Ben, PortSwigger Agent | Last updated: Sep 13, 2021 07:52AM UTC

Thanks Furkan. We have received your email and will respond from there in due course.

You need to Log in to post a reply. Or register here, for free.