Burp Suite User Forum

Login to post

All Python extensions fail to load.

Wesley | Last updated: Jan 06, 2021 04:04AM UTC

I am using Burp Suite Community Version v2020.12.1 Build 5278 The Jython standalone version is 2.7.2 OS: Windows 10, v 10.0.18363 Installed Autorize through the Extender > BApp Store panel. It downloads and installs the files. In the Extensions list, on the Extender > Extensions panel, Autorize is listed and "Loaded" is unchecked. Clicking the "Loaded" box to load it, throws an error, with the stack trace found below. Java extensions are loading correctly. I attempted to load other Python extensions, "LightBulb WAF Audidting Framework" and "AuthMatrix". They each throw errors similar too the stacktrace below. What stands out to me in trace is they all have the same error `TypeError: __enter__(): expected 1 args; got 0`. Searching around, I haven't found a solution, and I'm not quite sure what to do to fix this. Any help would be appreciated, Thankyou. ------ Traceback (most recent call last): File "C:\Users\moto4\AppData\Roaming\BurpSuite\bapps\f9bbac8c4acf4aefa4d7dc92a991af2f\Autorize.py", line 9, in <module> from helpers.initiator import Initiator File "C:\Users\moto4\AppData\Roaming\BurpSuite\bapps\f9bbac8c4acf4aefa4d7dc92a991af2f\helpers\initiator.py", line 14, in <module> from threading import Lock File "C:\Python27\Lib\threading.py", line 1190, in <module> _shutdown = _MainThread()._exitfunc File "C:\Python27\Lib\threading.py", line 1082, in __init__ self._Thread__started.set() File "C:\Python27\Lib\threading.py", line 582, in set """ File "C:\Python27\Lib\threading.py", line 286, in __enter__ return self.__lock.__enter__() TypeError: __enter__(): expected 1 args; got 0 at org.python.core.Py.TypeError(Py.java:236) at org.python.core.PyReflectedFunction.throwError(PyReflectedFunction.java:213) at org.python.core.PyReflectedFunction.throwArgCountError(PyReflectedFunction.java:266) at org.python.core.PyReflectedFunction.throwError(PyReflectedFunction.java:323) at org.python.core.PyReflectedFunction.__call__(PyReflectedFunction.java:171) at org.python.core.PyReflectedFunction.__call__(PyReflectedFunction.java:208) at org.python.core.PyObject.__call__(PyObject.java:461) at org.python.core.PyObject.__call__(PyObject.java:465) at org.python.core.PyMethod.__call__(PyMethod.java:126) at threading$py.__enter__$22(C:/Python27/Lib/threading.py:286) at threading$py.call_function(C:/Python27/Lib/threading.py) at org.python.core.PyTableCode.call(PyTableCode.java:173) at org.python.core.PyBaseCode.call(PyBaseCode.java:134) at org.python.core.PyFunction.__call__(PyFunction.java:416) at org.python.core.PyMethod.__call__(PyMethod.java:126) at org.python.core.ContextGuard.__enter__(ContextGuard.java:17) at threading$py.set$46(C:/Python27/Lib/threading.py:585) at threading$py.call_function(C:/Python27/Lib/threading.py) at org.python.core.PyTableCode.call(PyTableCode.java:173) at org.python.core.PyBaseCode.call(PyBaseCode.java:134) at org.python.core.PyFunction.__call__(PyFunction.java:416) at org.python.core.PyMethod.__call__(PyMethod.java:126) at threading$py.__init__$80(C:/Python27/Lib/threading.py:1085) at threading$py.call_function(C:/Python27/Lib/threading.py) at org.python.core.PyTableCode.call(PyTableCode.java:173) at org.python.core.PyBaseCode.call(PyBaseCode.java:306) at org.python.core.PyBaseCode.call(PyBaseCode.java:197) at org.python.core.PyFunction.__call__(PyFunction.java:485) at org.python.core.PyMethod.instancemethod___call__(PyMethod.java:237) at org.python.core.PyMethod.__call__(PyMethod.java:228) at org.python.core.PyMethod.__call__(PyMethod.java:223) at org.python.core.Deriveds.dispatch__init__(Deriveds.java:20) at org.python.core.PyObjectDerived.dispatch__init__(PyObjectDerived.java:1112) at org.python.core.PyType.type___call__(PyType.java:2408) at org.python.core.PyType.__call__(PyType.java:2389) at org.python.core.PyObject.__call__(PyObject.java:446) at org.python.core.PyObject.__call__(PyObject.java:450) at threading$py.f$0(C:/Python27/Lib/threading.py:1321) at threading$py.call_function(C:/Python27/Lib/threading.py) at org.python.core.PyTableCode.call(PyTableCode.java:173) at org.python.core.PyCode.call(PyCode.java:18) at org.python.core.imp.createFromCode(imp.java:630) at org.python.core.imp.createFromPyClass(imp.java:312) at org.python.core.imp.createFromPyClass(imp.java:255) at org.python.core.imp.loadFromSource(imp.java:929) at org.python.core.imp.find_module(imp.java:769) at org.python.core.imp.import_next(imp.java:1158) at org.python.core.imp.import_first(imp.java:1219) at org.python.core.imp.import_module_level(imp.java:1361) at org.python.core.imp.importName(imp.java:1528) at org.python.core.ImportFunction.__call__(__builtin__.java:1285) at org.python.core.PyObject.__call__(PyObject.java:433) at org.python.core.__builtin__.__import__(__builtin__.java:1232) at org.python.core.imp.importFromAs(imp.java:1620) at org.python.core.imp.importFrom(imp.java:1595) at helpers.initiator$py.f$0(C:/Users/moto4/AppData/Roaming/BurpSuite/bapps/f9bbac8c4acf4aefa4d7dc92a991af2f/helpers/initiator.py:16) at helpers.initiator$py.call_function(C:/Users/moto4/AppData/Roaming/BurpSuite/bapps/f9bbac8c4acf4aefa4d7dc92a991af2f/helpers/initiator.py) at org.python.core.PyTableCode.call(PyTableCode.java:173) at org.python.core.PyCode.call(PyCode.java:18) at org.python.core.imp.createFromCode(imp.java:630) at org.python.core.imp.createFromPyClass(imp.java:312) at org.python.core.imp.createFromPyClass(imp.java:255) at org.python.core.imp.loadFromSource(imp.java:929) at org.python.core.imp.find_module(imp.java:769) at org.python.core.PyModule.findSubModule(PyModule.java:140) at org.python.core.PyModule.impAttr(PyModule.java:107) at org.python.core.imp.import_next(imp.java:1161) at org.python.core.imp.import_logic(imp.java:1278) at org.python.core.imp.import_module_level(imp.java:1369) at org.python.core.imp.importName(imp.java:1528) at org.python.core.ImportFunction.__call__(__builtin__.java:1285) at org.python.core.PyObject.__call__(PyObject.java:433) at org.python.core.__builtin__.__import__(__builtin__.java:1232) at org.python.core.imp.importFromAs(imp.java:1620) at org.python.core.imp.importFrom(imp.java:1595) at org.python.pycode._pyx4.f$0(C:/Users/moto4/AppData/Roaming/BurpSuite/bapps/f9bbac8c4acf4aefa4d7dc92a991af2f/Autorize.py:11) at org.python.pycode._pyx4.call_function(C:/Users/moto4/AppData/Roaming/BurpSuite/bapps/f9bbac8c4acf4aefa4d7dc92a991af2f/Autorize.py) at org.python.core.PyTableCode.call(PyTableCode.java:173) at org.python.core.PyCode.call(PyCode.java:18) at org.python.core.Py.runCode(Py.java:1687) at org.python.core.__builtin__.execfile_flags(__builtin__.java:535) at org.python.util.PythonInterpreter.execfile(PythonInterpreter.java:287) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.base/java.lang.reflect.Method.invoke(Method.java:564) at burp.d2_.<init>(Unknown Source) at burp.yl.a(Unknown Source) at burp.dgy.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)

Wesley | Last updated: Jan 06, 2021 04:36AM UTC

Update: I just noticed that there *is* an error being thrown upon installation from BApp Store. When I click install, it is attempting to install, and then "Failed to load BApp" appears in the lower right corner.

Hannah, PortSwigger Agent | Last updated: Jan 06, 2021 09:20AM UTC

Hi If you restart your installation, do you still get the "Failed to load BApp" error?

Wesley | Last updated: Jan 08, 2021 07:38PM UTC

Removed all extensions to start 'fresh-ish'. Initial install displays "Failed to load BApp" in lower right corner. Reinstall also displays "Failed to load BApp" in lower right corner.

Hannah, PortSwigger Agent | Last updated: Jan 11, 2021 10:12AM UTC

Hi Are you just seeing this issue with Python extensions, or with other extension types as well? If you click the "Refresh list" button in the bottom left of the BApp Store, do you receive any error messages? Are you able to manually download the extension from the online BApp Store (https://portswigger.net/bappstore/f9bbac8c4acf4aefa4d7dc92a991af2f) and then load it in using the "Manual install" button at the bottom left of the BApp Store screen?

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