Burp Suite User Forum

Create new post

Jython Error for Burp Extension

Malaka | Last updated: Nov 13, 2015 05:40AM UTC

Hey, I am trying to configure the jython api for Burp Suite and I am getting the following error. Does anyone know what I can do to fix this? root@osboxes:~/jython-burp-api# java -jar jython.jar -Dpython.path=Lib/ run.py -B burp.jar -i -d -v 2015-11-13 00:13:24,298 - BurpExtender - ERROR - Could not load console tab Traceback (most recent call last): File "/root/jython-burp-api/Lib/burp_extender.py", line 181, in registerExtenderCallbacks from gds.burp.ui import ConsoleTab File "/root/jython-burp-api/Lib/gds/burp/ui.py", line 12, in <module> from .console import Console File "/root/jython-burp-api/Lib/gds/burp/console/__init__.py", line 12, in <module> from console import Console File "/root/jython-burp-api/Lib/gds/burp/console/console.py", line 24, in <module> class Console(object): File "/root/jython-burp-api/Lib/gds/burp/console/console.py", line 25, in Console PS1 = sys.ps1 AttributeError: '<reflected field public org.python.core.PyObject o' object has no attribute 'ps1' 2015-11-13 00:13:25,430 - BurpExtender - DEBUG - Monitoring /root/jython-burp-api/Lib/gds/burp/menu/console.py for changes 2015-11-13 00:13:25,530 - BurpExtender - DEBUG - Monitoring /root/jython-burp-api/burp.ini for changes Traceback (most recent call last): File "run.py", line 117, in <module> start_burp(opt, *args) File "run.py", line 65, in start_burp Burp.console = console = JLineConsole() TypeError: org.python.util.JLineConsole(): expected 1 args; got 0 2015-11-13 00:14:51,417 - BurpExtender - ERROR - Could not load console tab Traceback (most recent call last): File "/root/jython-burp-api/Lib/burp_extender.py", line 181, in registerExtenderCallbacks from gds.burp.ui import ConsoleTab File "/root/jython-burp-api/Lib/gds/burp/ui.py", line 12, in <module> from .console import Console File "/root/jython-burp-api/Lib/gds/burp/console/__init__.py", line 12, in <module> from console import Console File "/root/jython-burp-api/Lib/gds/burp/console/console.py", line 24, in <module> class Console(object): File "/root/jython-burp-api/Lib/gds/burp/console/console.py", line 25, in Console PS1 = sys.ps1 AttributeError: '<reflected field public org.python.core.PyObject o' object has no attribute 'ps1' Thanks!

Liam, PortSwigger Agent | Last updated: Nov 13, 2015 01:42PM UTC

Hi Malaka Thanks for your message. We don't recommend trying to run Python extensions in this way. The preferred way is to launch Burp as usual, configure Burp with the location of the Jython standalone JAR: https://portswigger.net/burp/help/extender.html#options_pythonenv and then load the extension via the Burp UI: https://portswigger.net/burp/help/extender.html#loading Please let us know if you need any further assistance.

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