Name is required.
Email address is required.
Invalid email address
Answer is required.
Exceeding max length of 5KB

Packaging Burp Extensions

Venka Aug 25, 2019 02:18AM UTC

How are we supposed to package extensions that require both Java and Jython? I've an extension which uses 2 python projects and those 2 use python modules like six. How should I package it for distribution?

Venka Aug 25, 2019 02:53PM UTC
Giving you more context,

I'm trying to bundle/package the Python modules with the Java jar file packages. But when I do this, Jython is not able to find these modules unless you put them under the Lib folderwhere Jython.jar is present.

So, I tried adding the extension's ProtectionDomain path (zip/jar) to "python.path" which looks like Jython is able to find the modules but is unable to find the other modules. I get the following error in this case.

So, what's the proper way to bundle the Python modules without having the user install them in the LIb folder and have the extension work seamlessly?

Current class path 1 /tmp/burp93946213344455771.tmp/1
New python module path value /tmp/burp93946213344455771.tmp/1
Exception during disposal:
at java.awt.EventQueue.invokeAndWait(
at java.awt.Window.doDispose(
at java.awt.Window.dispose(
at burp.bbm.n(Unknown Source)
at burp.czi.lambda$exitSuite$4(Unknown Source)
at java.util.concurrent.Executors$
at java.util.concurrent.ThreadPoolExecutor.runWorker(
at java.util.concurrent.ThreadPoolExecutor$
Caused by: java.lang.IllegalStateException: Can't dispose InputContext while it's active
Deleting temporary files - please wait ... done.
java.lang.NoClassDefFoundError: org/python/netty/util/concurrent/DefaultFutureListeners
at org.python.netty.util.concurrent.DefaultPromise.notifyListeners(
at org.python.netty.util.concurrent.DefaultPromise.setSuccess(
at org.python.netty.util.concurrent.SingleThreadEventExecutor$
Caused by: java.lang.ClassNotFoundException: org.python.netty.util.concurrent.DefaultFutureListeners
at java.lang.ClassLoader.loadClass(
at java.lang.ClassLoader.loadClass(
... 4 more
java.lang.NoClassDefFoundError: org/python/netty/util/concurrent/DefaultFutureListeners

Liam Tai-Hogan Aug 29, 2019 09:42AM UTC Support Center agent

We have a bit of a backlog in terms of Extensions issues. Please accept our apologies, we’ll get back to you as soon as we can.

Mike Eaton Oct 23, 2019 01:18PM UTC Support Center agent

Hi Venka, we recommend using a requirements.txt file to list your python dependencies, you can find out more about how to configure this at the following page:

Post Your public answer

Your name
Your email address