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

Add a relative url to a scoped domain

RB | Last updated: Nov 03, 2016 08:36PM UTC

I'm trying to dynamically add relative URLs to a scoped domain using the addToSiteMap() method via the python api and am having a lot of trouble. addToSiteMap(IHttpRequestResponse item) It requires an IHttpRequestResponse object which can be retrieved using... * getProxyHistory() * getSiteMap(java.lang.String urlPrefix) * makeHttpRequest(IHttpService httpService, byte[] request) So makeHttpRequest seems to be the function I want and I cannot find a function that returns the IHttpService. Googling the makeHttpRequest, I saw some people using a getHttpService() but I'm unable to get that to work too. Is there a way to easily add a relative url to a scoped domain? I'd like to ideally add the url without making a request to it until I begin scanning.

PortSwigger Agent | Last updated: Nov 04, 2016 09:19AM UTC

You can just provide your own class that implements IHttpService, or you can make one using: https://portswigger.net/burp/extender/api/burp/IExtensionHelpers.html#buildHttpService(java.lang.String,%20int,%20java.lang.String)

Burp User | Last updated: Nov 10, 2016 06:49PM UTC