Burp Suite User Forum

Create new post

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

Does anyone have an idea on how to use addToSiteMap() ?

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