Burp Suite User Forum

Create new post

How do i add al subdomains to scope?

Carlos | Last updated: Sep 28, 2015 09:53PM UTC

I have the domain test.com How can i add all the subdomains to the scope? *.test.com

PortSwigger Agent | Last updated: Sep 29, 2015 08:05AM UTC

Burp's scope rules use regular expressions in the host field, so you can create a rule that matches something like: .*\.test\.com$ and this should match all subdomains of test.com.

Burp User | Last updated: Jul 25, 2019 01:15AM UTC

Thank you Very MucH

Ravindra | Last updated: Jul 22, 2020 06:13PM UTC

what if the website has multpile domain names like test.in and test.com, how to add both of them to the scope?

Uthman, PortSwigger Agent | Last updated: Jul 23, 2020 08:36AM UTC

If you replace the .com in the example above with .* then that should work. E.g. .*\.test\.*$

tw3 | Last updated: Oct 12, 2020 12:40PM UTC

why does this doesn't work for me, when i add www.test.com it works but when I try this .*\.test\.com$ or .*\.test\.*$ it just doesn't work, showing nothing in site map and nothing in proxy

tw3 | Last updated: Oct 12, 2020 01:18PM UTC

what worked for me now is .*\.test\..*$ not .*\.test\..*$

Uthman, PortSwigger Agent | Last updated: Oct 12, 2020 01:19PM UTC

What is the full URL you are attempting to match?

Najam | Last updated: Nov 30, 2020 04:47AM UTC

I tried to add all subdomains of www.zscaler.com, for that I tried .*\.zscaler\.*$ but it didnt work

Najam | Last updated: Nov 30, 2020 04:47AM UTC

I tried to add all subdomains of www.zscaler.com, for that I tried .*\.zscaler\.*$ but it didnt work

Uthman, PortSwigger Agent | Last updated: Nov 30, 2020 10:25AM UTC

Try this: (^|^[^:]+:\/\/|[^\.]+\.)zscaler.* https://regexr.com/ is a great resource too.

You must be an existing, logged-in customer to reply to a thread. Please email us for additional support.