Burp Suite User Forum

Login to post

API function to check if URL is in scope?

Lode | Last updated: Mar 13, 2018 09:55AM UTC

I have created a custom extension that takes all requests of a certain domain from the sitemap, does some magic on the insertion points and then adds the requests with custom insertion points to the active scanner. I'm having a problem with ensuring that I only add requests that are in scope. Is there an API function that can be called to check if an URL is in scope?

PortSwigger Agent | Last updated: Mar 13, 2018 10:25AM UTC

Hi Lode, You can use IBurpExtenderCallbacks.isInScope() to check. For your extension, this may not be necessary. When an in-scope item is sent to active scanner, the scan starts automatically. But when an out-of-scope item is sent, the user is prompted to confirm whether they want to scan that URL. Please let us know if you need any further assistance.

You need to Log in to post a reply. Or register here, for free.