Burp Suite User Forum

Create new post

Setting up Pycharm, is there a burp python module? or how do I resolve imports?

Mike | Last updated: Sep 22, 2023 04:26PM UTC

OK I have a pycharm project, I have loaded legacy example from the github https://github.com/PortSwigger the source examples contain imports that don't resolve so give errors... from burp import IBurpExtender from burp import IBurpXyZ from burp import IBurpABC What is the recommended way to pull in this burp package/dependency to resolve this import? Thanks for help

Mike | Last updated: Sep 22, 2023 04:34PM UTC

To add.... usually there is a python package, you import it and off you go. What does Portswigger use/do to build python-based extensions in Python IDE? How do you resolve the import issue?

Michelle, PortSwigger Agent | Last updated: Sep 25, 2023 10:57AM UTC

Hi I'm afraid we don't have a package that can be imported, and this is a legacy API we have not worked on for a while, so we would not plan to introduce one. You would, therefore, need to write your extension and then load it into Burp for testing. If you're at an early stage of creating extensions, you might want to take a look at using the newer Montoya API, which gives you much more functionality than the old legacy API. This does require the use of Java, but given the additional functionality that's available, you might find it worth the switch: https://portswigger.net/burp/documentation/desktop/extensions/creating

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