API function to check if URL is in scope?
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?
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.