Name is required.
Email address is required.
Invalid email address
Answer is required.
Exceeding max length of 5KB

API function to check if URL is in scope?

Lode Vanstechelman 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?


Paul Johnston Mar 13, 2018 10:27AM UTC Support Center agent

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.


Post Your public answer

Your name
Your email address
Answer