Skip to content

Instantly share code, notes, and snippets.

@0xcrypto
Last active October 20, 2022 00:53
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save 0xcrypto/751141edcca8c53b78df2ea424a2e2d8 to your computer and use it in GitHub Desktop.
Save 0xcrypto/751141edcca8c53b78df2ea424a2e2d8 to your computer and use it in GitHub Desktop.
#!/usr/bin/env zsh
rm ~/bugbounty -rf
mkdir ~/bugbounty
cd ~/bugbounty
curl -O "https://raw.githubusercontent.com/projectdiscovery/public-bugbounty-programs/master/chaos-bugbounty-list.json"
cat chaos-bugbounty-list.json | grep '"name"' | awk '{$1=$1};1' | sed 's/"name": "//g' | sed 's/"name":"//g' | sed 's/",//g' | while read folder; do mkdir -p $folder -v; done
for (( i=0; i < $(cat chaos-bugbounty-list.json | jq -r .programs | jq length); i++ ))
do
cat chaos-bugbounty-list.json | jq --arg i "$i" -r ".programs[($i | tonumber)].domains | .[]" > "$(cat chaos-bugbounty-list.json | jq --arg i "$i" -r '.programs[($i | tonumber)].name')/assets.txt" && echo -n "."
done
for BBP in $(ls ~/bugbounty); do
cd ~/bugbounty/$BBP
subfinder -dL assets.txt -o subdomains.txt
while read TARGET; do
echo "Finding technology for $TARGET"
HTTP_TARGET=$(echo "$TARGET" | httpx -silent | xargs)
if [ -z "$HTTP_TARGET" ]
then
echo "Target not active"
else
wappalyzer "$HTTP_TARGET" | jq > "$(echo $HTTP_TARGET | sed -e 's/[^[:alnum:]]/_/g').tech.txt"
fi
done < subdomains.txt
done
cd ~
zip bugbounty.zip ~/bugbounty -r
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment