Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?

Code completion for Burp Jython extensions

The IntelliJ Python plugin supports code completion and this can recognize the Burp API. First, make sure your project has the SDK set to Jython:

image

Then, add the Burp API as a library:

image

To get function parameters to provide code completion, you need to add type hinting:

image

If you encounter difficulty, the cache may have become corrupted. Try invalidating the cache and restarting.

image

@parsiya

This comment has been minimized.

Copy link

parsiya commented Nov 8, 2019

Thanks. It works. Is there a way to use Python2 type hints instead?

from burp import IBurpExtender, IBurpExtenderCallbacks

class BurpExtender(IBurpExtender):

    def registerExtenderCallbacks(self, callbacks):
        # type: (IBurpExtenderCallbacks) -> None
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.