Skip to content

Instantly share code, notes, and snippets.

@noobsdt
Last active August 29, 2021 14:57
Show Gist options
  • Save noobsdt/ef0ab5b4c59f6e0ff9f7ca4713829394 to your computer and use it in GitHub Desktop.
Save noobsdt/ef0ab5b4c59f6e0ff9f7ca4713829394 to your computer and use it in GitHub Desktop.
#!/bin/bash
echo "#########################################"
echo "# Github Recon Scripts #"
echo "# By gwen001 #"
echo "# Bash Script By @noobsdt #"
echo "#########################################"
echo ""
echo "1. github-endpoints.py"
echo "2. github-grabrepo.php"
echo "3. git-history.py"
echo "4. github-search.php"
echo "5. github-subdomains.py"
echo "6. git-pillage.py"
echo "7. github-dorks.py"
echo ""
echo ""
read -p "Select a script: " sel
path=~/tools/github-search
d_path=~/tools/github-search/dorks.txt
if [[ $sel == 1 ]]
then
read -p "Give a domain(Ex: google.com): " inp1
python3 $path/github-endpoints.py -t <Token> -d $inp1 -e -r -s
elif [[ $sel == 2 ]]
then
mkdir ./gitrepos
echo "[1] User"
echo "[2] Organization"
read -p "Select a Option: " opt
if [[ $opt == 1 ]]
then
read -p "Give a User: " user
php $path/github-grabrepo.php -u $user -d ~/gitrepos
elif [[ $opt == 2 ]]
then
read -p "Give a Organization Name: " org
php $path/github-grabrepo.php -u $org -d ~/gitrepos
fi
elif [[ $sel == 3 ]]
then
echo "You need gitrepos file to run this script"
read -p "Give a Regex or a file: " regex
python3 $path/git-history.py -p ~/gitrepos -s $regex
elif [[ $sel == 4 ]]
then
echo "Not available now!"
elif [[ $sel == 5 ]]
then
read -p "Give valid domain: " $inp2
python3 $path/github-subdomains.py -d $inp2 -t Token -e
elif [[ $sel == 6 ]]
then
read -p "Give valid domain(https://ex.com): " $inp3
python3 $path/git-pillage.py -u $inp3 -t 10 -v
elif [[ $sel == 7 ]]
then
echo "[1] User"
echo "[2] Organization"
read -p "Select a Option: " opt
if [[ $opt == 1 ]]
then
read -p "Give a User or Users(u1,u2): " user
python3 $path/github-dorks.py -d $d_path -u $user -e 20
elif [[ $opt == 2 ]]
then
read -p "Give a Organization Name: " org
python3 $path/github-dorks.py -d $d_path -o $org -e 20
fi
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment