Burp Suite User Forum

Create new post

Import jar in python program

John | Last updated: May 09, 2017 09:38PM UTC

Hello, I'm currently making a burp extension in Jython. I'm trying to import a jar file - I followed steps as outlined in http://www.jython.org/jythonbook/en/1.0/ModulesPackages.html. Using sys.path.append("path/module.jar") I observed that the jar file is in my CLASSPATH. However, I'm unable to call the package. Is there something I'm missing? I received the following error: No module named <package_name>

PortSwigger Agent | Last updated: May 10, 2017 08:11AM UTC

We'll investigate this and get back to you. This might be a missing capability in Burp, in which case we'll look into adding it.

PortSwigger Agent | Last updated: May 11, 2017 07:42AM UTC

In today's release (1.7.23) we have made Burp pull in Java JARs from the configured location for Java libraries when loading extensions written in Python and Ruby. So you should easily be able to use Java libraries in Python/Ruby extensions now.

You must be an existing, logged-in customer to reply to a thread. Please email us for additional support.