Burp Suite User Forum

Create new post

Expose class/method/functions of burp extension via rest api in python

Wayne | Last updated: Jul 09, 2022 02:20PM UTC

I am trying to figure out a way to expose few class/method/functions in python similar to this https://github.com/vmware/burp-rest-api ( java implementation ). Current challenge is how to import classes of extension in python or vice-versa? Any help on building same extension in python?

Hannah, PortSwigger Agent | Last updated: Jul 11, 2022 10:57AM UTC

Hi You can find a few examples of simple extensions written in Java, Python, and Ruby here: https://portswigger.net/burp/extender You can find the code for all Python-based BApp Store extensions here: https://github.com/orgs/PortSwigger/repositories?language=python&type=all

Wayne | Last updated: Jul 14, 2022 12:53PM UTC

hi Hannah i am well aware of github repo, i am looking soemthing specific i.e. how do we access java classes of burp jar in python code which might be running/expose rest api in python....similar to what vmware has done in java

Hannah, PortSwigger Agent | Last updated: Jul 15, 2022 09:41AM UTC

The VMware REST API exposes the Extender API functionality at a web endpoint. You can find the Extender API documentation online here: https://portswigger.net/burp/extender/api/ Alternatively, you can find them in Burp by going to "Extender > APIs". When developing your extension in Python, you do not need to include the interface files. You can just import them from the burp package, as demonstrated in the example Python extensions I linked previously.

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