-
Notifications
You must be signed in to change notification settings - Fork 91
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Accessing parent document properties on tags #85
Labels
enhancement
New feature or request
Comments
It's a good idea. By now I do it this way: All urls from Bugcrowd programs Also this function to get urls from only disabled programs:
I have written from functions to use BBRF in a more flexible way. https://github.com/pdelteil/BugBountyHuntingScripts/blob/main/bbrf_helper.sh |
Thanks for sharing!
…On Tue, Oct 26, 2021, 17:51 Philippe Delteil ***@***.***> wrote:
It's a good idea. By now I do it this way:
All urls from Bugcrowd programs
IFS=$'\n'; for i in $(bbrf programs where site is bugcrowd); do bbrf urls
-p "$i" >> urls.bugcrowd.txt; done ;
Also this function to get urls from only disabled programs:
# getData only from disabled programs
# Use getOnlyDisabledPrograms urls/domains
getOnlyDisabledPrograms()
{
INPUT="$1"
COND="$2"
if [ -z "$INPUT" ]
then
echo "Use ${FUNCNAME[0]} urls/domains"
return 1;
fi
IFS=$'\n'
if [[ "$INPUT" != "urls" && "$INPUT" != "domains" ]]
then
echo "Use ${FUNCNAME[0]} urls/domains"
return 1;
fi
if [[ "$INPUT" == "urls" ]] | [[ "$INPUT" == "domains" ]]
then
all=$(bbrf programs --show-disabled $COND)
enabled=$(bbrf programs $COND)
listr=$(comm -3 <(echo "$enabled"|sort) <(echo "$all"|sort)|tr -d '\t')
fi
if [[ "$INPUT" == "urls" ]]
then
for program in $(echo "$listr");
do
bbrf urls -p "$program"
done
fi
if [[ "$INPUT" == "domains" ]]
then
for program in $(echo "$listr");
do
bbrf domains -p "$program"
done
fi
}
I have written from functions to use BBRF in a more flexible way.
https://github.com/pdelteil/BugBountyHuntingScripts/blob/main/bbrf_helper.sh
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#85 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAKRBL5J3HPKMHI4RQNAIJTUI3MAJANCNFSM5GXITAGQ>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
|
honoki
changed the title
[Feature Request] Accessing parent document properties on tags
Accessing parent document properties on tags
Jan 2, 2022
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When working with tags you are restricted to the ones of the document type you're querying, e.g.
urls
. However, there are many types where you'd want to work with the parent properties. e.g.bbrf urls where program.disabled is false
or
bbrf urls where program.bounties is true
Let me know if this makes sense. Thanks!
The text was updated successfully, but these errors were encountered: