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

Get scope list

a | Last updated: Sep 11, 2022 03:58PM UTC

Hello Is there any method can gets scope list or scope length

a | Last updated: Sep 11, 2022 04:00PM UTC

I am using java api

Hannah, PortSwigger Agent | Last updated: Sep 12, 2022 08:12AM UTC

Hi You cannot retrieve the length of the scope list. However, you can query whether an item is in scope or not. Are you using the new Montoya API (only available in v2022.9 of Burp) or are you using our existing Extender API?

a | Last updated: Sep 12, 2022 08:28AM UTC

Hi I think this method isInScope will be doesn't helpful If we don't add scope value Because that the extension will not working without scope If there any method can tells me if there value in scope or not Because if there value in scope i will check before running if not i will pass the check I am using Extender API

Hannah, PortSwigger Agent | Last updated: Sep 12, 2022 02:08PM UTC

Hi IBurpExtenderCallbacks.isInScope(url) will tell you whether an item is included in the scope or not. You can retrieve the URL of an IHttpRequestResponse item by using IExtensionHelpers.analyzeRequest(request).getUrl()

a | Last updated: Sep 12, 2022 09:40PM UTC

Hi Thank you for your advice But i was asking for something tells to me if there value in scope or not Because if there value i will check if the urls in the scope or not If there is no value in scope i will pass to scan directly I found this method callbacks.saveConfigAsJson("target.scope"); here https://github.com/PortSwigger/replicator/blob/bda954e12d987880a6a6c8c1a32d458696c13970/src/burp/SessionRulesMarshaller.java#L80 This return the scope configuration And this does what i do Thank you Hannah

a | Last updated: Sep 12, 2022 09:40PM UTC