Burp Suite User Forum

Create new post

An error occurs when I create a burp extension tab

hackerproxy | Last updated: Apr 17, 2022 01:03PM UTC

MY CODE: def getUiComponent(self): from javax.swing import JPanel from java.awt import BorderLayout panel = JPanel(BorderLayout()) return panel Output: Traceback (most recent call last): File "<string>", line 1, in <module> NameError: name 'BurpExtender' is not defined at org.python.core.Py.NameError(Py.java:261) at org.python.core.PyFrame.getname(PyFrame.java:257) at org.python.pycode._pyx6.f$0(<string>:1) at org.python.pycode._pyx6.call_function(<string>) 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.Py.exec(Py.java:1731) at org.python.util.PythonInterpreter.exec(PythonInterpreter.java:268) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:78) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.base/java.lang.reflect.Method.invoke(Method.java:567) at burp.c7q.<init>(Unknown Source) at burp.d6q.a(Unknown Source) at burp.ftm.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:831)

Hannah, PortSwigger Agent | Last updated: Apr 18, 2022 08:34AM UTC

Hi Have you implemented the IBurpExtender class and registerExtenderCallbacks() method? You can find some example extensions to get you started here: https://portswigger.net/burp/extender

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