Burp Suite User Forum

Create new post

Errors when installing python/jython extensions

Uttam | Last updated: Apr 16, 2021 10:41AM UTC

When installing a python extension such as Authorize I'm getting this error. Traceback (most recent call last): File "/home/myhome/.BurpSuite/bapps/f9bbac8c4acf4aefa4d7dc92a991af2f/Autorize.py", line 9, in <module> from helpers.initiator import Initiator File "/home/myhome/.BurpSuite/bapps/f9bbac8c4acf4aefa4d7dc92a991af2f/helpers/initiator.py", line 10, in <module> from gui.export import Export File "/home/myhome/.BurpSuite/bapps/f9bbac8c4acf4aefa4d7dc92a991af2f/gui/export.py", line 17, in <module> from save_restore import SaveRestore SyntaxError: ("'with' will become a reserved keyword in Python 2.6", ('/home/myhome/.BurpSuite/bapps/f9bbac8c4acf4aefa4d7dc92a991af2f/gui/save_restore.py', 38, 12, '')) at org.python.core.ParserFacade.fixParseError(ParserFacade.java:92) at org.python.core.imp.compileSource(imp.java:328) at org.python.core.imp.createFromSource(imp.java:343) at org.python.core.imp.loadFromSource(imp.java:576) at org.python.core.imp.find_module(imp.java:473) at org.python.core.PyModule.impAttr(PyModule.java:100) at org.python.core.imp.import_next(imp.java:715) at org.python.core.imp.import_name(imp.java:824) at org.python.core.imp.importName(imp.java:884) at org.python.core.ImportFunction.__call__(__builtin__.java:1220) at org.python.core.PyObject.__call__(PyObject.java:357) at org.python.core.__builtin__.__import__(__builtin__.java:1173) at org.python.core.imp.importFromAs(imp.java:978) at org.python.core.imp.importFrom(imp.java:954) at gui.export$py.f$0(/home/myhome/.BurpSuite/bapps/f9bbac8c4acf4aefa4d7dc92a991af2f/gui/export.py:19) at gui.export$py.call_function(/home/myhome/.BurpSuite/bapps/f9bbac8c4acf4aefa4d7dc92a991af2f/gui/export.py) at org.python.core.PyTableCode.call(PyTableCode.java:165) at org.python.core.PyCode.call(PyCode.java:18) at org.python.core.imp.createFromCode(imp.java:386) at org.python.core.imp.createFromSource(imp.java:349) at org.python.core.imp.loadFromSource(imp.java:576) at org.python.core.imp.find_module(imp.java:473) at org.python.core.PyModule.impAttr(PyModule.java:100) at org.python.core.imp.import_next(imp.java:715) at org.python.core.imp.import_logic(imp.java:777) at org.python.core.imp.import_name(imp.java:839) at org.python.core.imp.importName(imp.java:884) at org.python.core.ImportFunction.__call__(__builtin__.java:1220) at org.python.core.PyObject.__call__(PyObject.java:357) at org.python.core.__builtin__.__import__(__builtin__.java:1173) at org.python.core.imp.importFromAs(imp.java:978) at org.python.core.imp.importFrom(imp.java:954) at helpers.initiator$py.f$0(/home/myhome/.BurpSuite/bapps/f9bbac8c4acf4aefa4d7dc92a991af2f/helpers/initiator.py:16) at helpers.initiator$py.call_function(/home/myhome/.BurpSuite/bapps/f9bbac8c4acf4aefa4d7dc92a991af2f/helpers/initiator.py) at org.python.core.PyTableCode.call(PyTableCode.java:165) at org.python.core.PyCode.call(PyCode.java:18) at org.python.core.imp.createFromCode(imp.java:386) at org.python.core.imp.createFromSource(imp.java:349) at org.python.core.imp.loadFromSource(imp.java:576) at org.python.core.imp.find_module(imp.java:473) at org.python.core.PyModule.impAttr(PyModule.java:100) at org.python.core.imp.import_next(imp.java:715) at org.python.core.imp.import_logic(imp.java:777) at org.python.core.imp.import_name(imp.java:839) at org.python.core.imp.importName(imp.java:884) at org.python.core.ImportFunction.__call__(__builtin__.java:1220) at org.python.core.PyObject.__call__(PyObject.java:357) at org.python.core.__builtin__.__import__(__builtin__.java:1173) at org.python.core.imp.importFromAs(imp.java:978) at org.python.core.imp.importFrom(imp.java:954) at org.python.pycode._pyx4.f$0(/home/myhome/.BurpSuite/bapps/f9bbac8c4acf4aefa4d7dc92a991af2f/Autorize.py:11) at org.python.pycode._pyx4.call_function(/home/myhome/.BurpSuite/bapps/f9bbac8c4acf4aefa4d7dc92a991af2f/Autorize.py) at org.python.core.PyTableCode.call(PyTableCode.java:165) at org.python.core.PyCode.call(PyCode.java:18) at org.python.core.Py.runCode(Py.java:1261) at org.python.core.__builtin__.execfile_flags(__builtin__.java:522) at org.python.util.PythonInterpreter.execfile(PythonInterpreter.java:225) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.base/java.lang.reflect.Method.invoke(Method.java:564) at burp.ame.<init>(Unknown Source) at burp.gyj.a(Unknown Source) at burp.b91.a(Unknown Source) at burp.b91.b(Unknown Source) at burp.coe.lambda$installBapp$1(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)

Hannah, PortSwigger Agent | Last updated: Apr 16, 2021 04:01PM UTC

Hi

Could you provide some more information on your installation, please?
  • Your version of Burp Suite (and whether you are using Community or Professional)
  • Your version of Jython you have loaded in Burp (Extender > Options > Python environment)
Cheers!

test | Last updated: Nov 16, 2021 09:13AM UTC

Hii @Hannah it happened to me as well I'm facing the same issue you can I'm using the following version of jython standalone 2.7.0.jar My burp pro version is 2021.9.1. I'm installing a 403 bypass extension

Hannah, PortSwigger Agent | Last updated: Nov 16, 2021 09:55AM UTC

Hi Could you try using a different version of Jython to see if that resolves the issue? The latest version of Jython is v2.7.2 and can be found here: https://www.jython.org/download.html Please make sure to use the standalone file.

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