Closed pdelteil closed 3 years ago
How does this differ from doing just bbrf show sub.domain.com
?
Edit – I didn't read the title before. The show command will return all tags attached to a document. Pipe to jq .tags
to find them easily.
In fact I found a work around
> a=$(bbrf show a.test.com |jq '.program'|sed 's/"//g'); bbrf show "$a" | jq '.tags'
{
"platform": "bugcrowd"
}
``
Directly from the subdomain retrieve the tags of the program.
How does this differ from doing just
bbrf show sub.domain.com
?Edit – I didn't read the title before. The show command will return all tags attached to a document. Pipe to
jq .tags
to find them easily.
I think I proposed the wrong syntax.
It should be something like
bbrf show domain.example -p
Would show the properties of the program and not the domain's.
I see what you mean. I don't have plans to support that at the level of BBRF, so I think your one-liner should do the trick.
Note that you can also use jq -r
to get the value without quotes, so you don't have to use sed
A common task for me is to discover where a subdomain/url is coming from (program + platform) it would be super useful to have something like this:
Thanks!