The Burp Suite User Forum was discontinued on the 1st November 2024.

Burp Suite User Forum

For support requests, go to the Support Center. To discuss with other Burp users, head to our Discord page.

SUPPORT CENTER DISCORD

Cannot access URL value when trying to build a Python extension

paupaulaz | Last updated: Apr 04, 2022 05:40PM UTC

Hi, I am trying to build my first Python extension to BurpSuite. As a starter, I am focusing on getting basic request data from the repeater tab. For some reason, I cannot seem to access the URL from the current request, whereas the headers and method can be accessed without any issue. I am trying to use both the url attribute and the getUrl() method on the result from analyzeRequest without success. My code is available here: https://gist.github.com/paupaulaz/f77ef9bef79647520b14f63685a34b67 Is there any reason why this is not working ? And would there be any place where I could find details about the Python API for Burp extensions ? Thanks a lot :)

Hannah, PortSwigger Agent | Last updated: Apr 05, 2022 08:04AM UTC