PortSwigger / BChecks

BChecks collection for Burp Suite Professional and Burp Suite Enterprise Edition
https://portswigger.net/burp/documentation/scanner/bchecks
GNU Lesser General Public License v3.0
588 stars 104 forks source link

[FEATURE] Getting subdomain name #197

Open abdilahrf opened 2 months ago

abdilahrf commented 2 months ago

What is the problem you are trying to solve?

I want to build a payload that directy consume the subdomain of a host to a payload
Eg /{subdomain}.zip but the reserved keyword {request.url.host} only give the full domain admin.google.com can't be only the subdomain which is admin

How would you like this problem to be solved?

if you have a keyword to extract the subdomain only, that would be great or let me know if i missing something, that you could've done this on the current condition

Hannah-PortSwigger commented 2 months ago

Hi

Thanks for the feedback!

Have you tried using a regular expression to extract the subdomain from your Host header?