Skip to content

Instantly share code, notes, and snippets.

@pajswigger
Last active November 8, 2019 04:18
Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save pajswigger/7966fdf10432354327d1b7f320bbd39a to your computer and use it in GitHub Desktop.
Save pajswigger/7966fdf10432354327d1b7f320bbd39a to your computer and use it in GitHub Desktop.

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
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