Support Center

Burp Community

See what our users are saying about Burp Suite:

How do I?

New Post View All

Feature Requests

New Post View All

Burp Extensions

New Post View All

Bug Reports

New Post View All

Burp Suite Documentation

Take a look at our Documentation section for full details about every Burp Suite tool, function and configuration option.

Full Documentation Contents Burp Projects
Suite Functions Burp Tools
Options Using Burp Suite

Burp Extender

Burp Extender lets you extend the functionality of Burp Suite in numerous ways.

Extensions can be written in Java, Python or Ruby.

API documentation Writing your first Burp Suite extension
Sample extensions View community discussions about Extensibility
Name is required.
Email address is required.
Invalid email address
Answer is required.
Exceeding max length of 5KB

Extension Not Loading Due to "Stale" Reference

Michael Sep 28, 2017 02:42AM UTC

So I noticed the following behavior when using the Python Scripter extension:

1. Installed the extension
2. Added custom script containing error in Scripter tab
3. Closed Burp
4. Relaunched Burp and noticed the extension would no longer load as it was still referencing the script from 2.
5. Removed/reinstalled the extension, but it still referenced the script from 2

Because the extension didn't load the Scripter tab was not visible and so the error could not be addressed.

See related output below:

Traceback (most recent call last):
File "/Users/michael/.BurpSuite/bapps/eb563ada801346e6bdb7a7d7c5c52583/", line 36, in registerExtenderCallbacks
self._code = compile(script, '<string>', 'exec')
File "<string>", line 13
for func in funcs
SyntaxError: mismatched input '\n' expecting COLON

at org.python.core.ParserFacade.fixParseError(
at org.python.core.ParserFacade.parse(
at org.python.core.CompileFunction.compile(
at org.python.core.CompileFunction.compile(
at org.python.core.CompileFunction.__call__(
at org.python.core.PyObject.__call__(
at org.python.core.PyObject.__call__(
at org.python.pycode._pyx4.registerExtenderCallbacks$2(/Users/dark_knight/.BurpSuite/bapps/eb563ada801346e6bdb7a7d7c5c52583/
at org.python.pycode._pyx4.call_function(/Users/dark_knight/.BurpSuite/bapps/eb563ada801346e6bdb7a7d7c5c52583/
at org.python.core.PyFunction.__call__(
at org.python.core.PyMethod.instancemethod___call__(
at org.python.core.PyMethod.__call__(
at org.python.core.PyMethod.__call__(
at org.python.core.PyMethod.__call__(
at org.python.core.PyObject._jcallexc(
at org.python.core.PyObject._jcall(
at org.python.proxies.__main__$BurpExtender$0.registerExtenderCallbacks(Unknown Source)
at Source)

How do I clean this reference?

Paul Johnston Sep 28, 2017 08:28AM UTC Support Center agent

Hi Michael,

Thanks for your message. This appears to be a bug in Python Scripter; I will contact the extension author in due course.

You can use Jython to clear the reference for now:

$ java -jar jython-standalone-2.7.0.jar
>>> from java.util.prefs import Preferences
>>> Preferences.userRoot().node(‘burp/extensions/_Python Scripter’).removeNode()

Please let us know if you need any further assistance.

Paul Johnston Sep 28, 2017 12:56PM UTC Support Center agent

Hi Michael,

We have applied a fix to Python Scripter so it now starts properly even if the saved script won’t compile.

Hope this works for you!

Michael Sep 28, 2017 03:30PM UTC
Much appreciated.

Post Your public answer

Your name
Your email address