Support Center

Burp Community

See what our users are saying about Burp Suite:

How do I?

New Post View All

Feature Requests

New Post View All

Burp Extensions

New Post View All

Bug Reports

New Post View All
Documentation

Burp Suite Documentation

Take a look at our Documentation section for full details about every Burp Suite tool, function and configuration option.

Full Documentation Contents Burp Projects
Suite Functions Burp Tools
Options Using Burp Suite
Extensibility

Burp Extender

Burp Extender lets you extend the functionality of Burp Suite in numerous ways.

Extensions can be written in Java, Python or Ruby.

API documentation Writing your first Burp Suite extension
Sample extensions View community discussions about Extensibility
Name is required.
Email address is required.
Invalid email address
Answer is required.
Exceeding max length of 5KB

Scope manipulation API

dnet Jan 22, 2019 08:45AM UTC

Methods IBurpExtenderCallbacks.{includeIn,excludeFrom}Scope make it possible to add/remove a specific URL to/from the scope. Is there a way to use these or any other API call to perform actions like those available on the GUI, such as specifying regular expressions for the path, ignoring the protocol and/or port, etc.?


Paul Johnston Jan 22, 2019 10:01AM UTC Support Center agent

You can use loadConfigFromJson() to configure an advanced scope.

What I recommend you do is set up a scope you want in the GUI and use the cog button to save this as JSON. Paste this JSON as a string in your extension source code, and use loadConfigFromJson() to apply it. When you’ve got that working, you can try changing the JSON string within the code to set a dynamic scope.

If you want to do more advanced things with loadConfigFromJson, there’s some interesting code here:

- https://github.com/pajswigger/repeater-cookie-switch

dnet Jan 22, 2019 10:37AM UTC
Thanks for the quick and detailed reply, that codebase is awesome!

Post Your public answer

Your name
Your email address
Answer