Skip to content

Instantly share code, notes, and snippets.

@adamenger
Created February 7, 2020 14:42
Show Gist options
  • Save adamenger/b6c201aa30c2ef1f2523ad86715271a2 to your computer and use it in GitHub Desktop.
Save adamenger/b6c201aa30c2ef1f2523ad86715271a2 to your computer and use it in GitHub Desktop.
➜ dev cat piggybank.sh
#!/bin/bash
repos=$(curl -s -H "User-Agent: adamenger/bugcrowd" https://api.github.com/orgs/$1/repos | jq -r '.[].full_name')
for x in $repos;
do
trufflehog --regex -x exclude.txt git://github.com/$x
done;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment