Skip to content

reconFTW is a tool designed to perform automated recon on a target domain by running the best set of tools to perform scanning and finding out vulnerabilities

github-endpoints golang version

six2dez69cad2c4558d
diff --git a/install.sh b/install.sh
index e1ce667..a680a51 100755
--- a/install.sh
+++ b/install.sh
@@ -132,6 +132,7 @@ eval go get -v github.com/haccer/subjack $DEBUG_STD
eval git clone https://github.com/haccer/subjack $dir/subjack $DEBUG_STD
eval GO111MODULE=on go get -v github.com/projectdiscovery/httpx/cmd/httpx $DEBUG_STD
printf "${bgreen} 30%% done${reset}\n\n"
+eval go get -u github.com/gwen001/github-endpoints $DEBUG_STD
eval git clone https://github.com/1ndianl33t/Gf-Patterns $dir/Gf-Patterns $DEBUG_STD
eval git clone https://github.com/tomnomnom/gf $dir/gf $DEBUG_STD
cp -r $dir/gf/examples ~/.gf
@@ -188,7 +189,7 @@ mkdir -p ~/.config/amass/
eval wget -nc -O ~/.config/amass/config.ini https://raw.githubusercontent.com/OWASP/Amass/master/examples/config.ini $DEBUG_STD
cd ~/.gf; eval wget -O potential.json https://raw.githubusercontent.com/devanshbatham/ParamSpider/master/gf_profiles/potential.json $DEBUG_STD; cd $dir
touch $dir/.github_tokens
-eval wget -O github-endpoints.py https://gist.githubusercontent.com/six2dez/d1d516b606557526e9a78d7dd49cacd3/raw/8e7f1e1139ba3501d15dcd2ad82338d303f0b404/github-endpoints.py $DEBUG_STD
+#eval wget -O github-endpoints.py https://gist.githubusercontent.com/six2dez/d1d516b606557526e9a78d7dd49cacd3/raw/8e7f1e1139ba3501d15dcd2ad82338d303f0b404/github-endpoints.py $DEBUG_STD
eval wget -O getjswords.py https://raw.githubusercontent.com/m4ll0k/Bug-Bounty-Toolz/master/getjswords.py $DEBUG_STD
eval wget -O subdomains.txt https://gist.githubusercontent.com/jhaddix/86a06c5dc309d08580a018c66354a056/raw/96f4e51d96b2203f19f6381c8c545b278eaa0837/all.txt $DEBUG_STD
eval wget -O resolvers.txt https://raw.githubusercontent.com/janmasarik/resolvers/master/resolvers.txt $DEBUG_STD
diff --git a/reconftw.sh b/reconftw.sh
index 7e69d77..dbcbae8 100755
--- a/reconftw.sh
+++ b/reconftw.sh
@@ -86,12 +86,13 @@ function tools_installed(){
[ -f $tools/fuzz_wordlist.txt ] || { printf "${bred} [*] OneListForAll [NO]\n"; allinstalled=false;}
[ -f $tools/LinkFinder/linkfinder.py ] || { printf "${bred} [*] LinkFinder [NO]\n"; allinstalled=false;}
[ -f $tools/GitDorker/GitDorker.py ] || { printf "${bred} [*] GitDorker [NO]\n"; allinstalled=false;}
- [ -f $tools/github-endpoints.py ] || { printf "${bred} [*] github-endpoints [NO]\n"; allinstalled=false;}
+# [ -f $tools/github-endpoints.py ] || { printf "${bred} [*] github-endpoints [NO]\n"; allinstalled=false;}
[ -f $tools/degoogle_hunter/degoogle_hunter.sh ] || { printf "${bred} [*] degoogle_hunter [NO]\n"; allinstalled=false;}
[ -f $tools/github-search/github-endpoints.py ] || { printf "${bred} [*] github-search [NO]\n"; allinstalled=false;}
[ -f $tools/getjswords.py ] || { printf "${bred} [*] getjswords [NO]\n"; allinstalled=false;}
[ -f $tools/subdomains.txt ] || { printf "${bred} [*] subdomains [NO]\n"; allinstalled=false;}
[ -f $tools/resolvers.txt ] || { printf "${bred} [*] resolvers [NO]\n"; allinstalled=false;}
+ eval type -P github-endpoints $DEBUG_STD || { printf "${bred} [*] github-endpoints [NO]\n"; allinstalled=false;}
eval type -P gospider $DEBUG_STD || { printf "${bred} [*] gospider [NO]\n"; allinstalled=false;}
eval type -P subfinder $DEBUG_STD || { printf "${bred} [*] Subfinder [NO]\n"; allinstalled=false;}
eval type -P assetfinder $DEBUG_STD || { printf "${bred} [*] Assetfinder [NO]\n"; allinstalled=false;}
@@ -151,13 +152,14 @@ function tools_full(){
[ -f $tools/CMSeeK/cmseek.py ] && printf "${bgreen}[*] CMSeeK [YES]\n" || printf "${bred} [*] CMSeeK [NO]\n"
[ -f $tools/fuzz_wordlist.txt ] && printf "${bgreen}[*] OneListForAll [YES]\n" || printf "${bred} [*] OneListForAll [NO]\n"
[ -f $tools/LinkFinder/linkfinder.py ] && printf "${bgreen}[*] LinkFinder [YES]\n" || printf "${bred} [*] LinkFinder [NO]\n"
- [ -f $tools/github-endpoints.py ] && printf "${bgreen}[*] github-endpoints [YES]\n" || printf "${bred} [*] github-endpoints[NO]\n"
+# [ -f $tools/github-endpoints.py ] && printf "${bgreen}[*] github-endpoints [YES]\n" || printf "${bred} [*] github-endpoints[NO]\n"
[ -f $tools/degoogle_hunter/degoogle_hunter.sh ] && printf "${bgreen}[*] degoogle_hunter [YES]\n" || printf "${bred} [*] degoogle_hunter [NO]\n"
[ -f $tools/github-search/github-endpoints.py ] && printf "${bgreen}[*] github-search [YES]\n" || printf "${bred} [*] github-search [NO]\n"
[ -f $tools/GitDorker/GitDorker.py ] && printf "${bgreen}[*] GitDorker [YES]\n" || printf "${bred} [*] GitDorker [NO]\n"
[ -f $tools/getjswords.py ] && printf "${bgreen}[*] getjswords.py [YES]\n" || printf "${bred} [*] getjswords.py [NO]\n"
[ -f $tools/subdomains.txt ] && printf "${bgreen}[*] subdomains.txt [YES]\n" || printf "${bred} [*] subdomains.txt [NO]\n"
[ -f $tools/resolvers.txt ] && printf "${bgreen}[*] resolvers.txt [YES]\n" || printf "${bred} [*] resolvers.txt [NO]\n"
+ eval type -P github-endpoints $DEBUG_STD && printf "${bgreen}[*] github-endpoints [YES]\n" || { printf "${bred} [*] github-endpoints [NO]\n"; }
eval type -P gospider $DEBUG_STD && printf "${bgreen}[*] gospider [YES]\n" || { printf "${bred} [*] gospider [NO]\n"; }
eval type -P subfinder $DEBUG_STD && printf "${bgreen}[*] Subfinder [YES]\n" || { printf "${bred} [*] Subfinder [NO]\n"; }
eval type -P assetfinder $DEBUG_STD && printf "${bgreen}[*] Assetfinder [YES]\n" || { printf "${bred} [*] Assetfinder [NO]\n"; }
@@ -549,7 +551,7 @@ urlchecks(){
else
gospider -S ${domain}_probed.txt -t 100 -c 10 -d 1 -a -w --js --sitemap --robots --cookie $COOKIE --blacklist jpg,jpeg,gif,css,tif,tiff,png,ttf,woff,woff2,ico,pdf,svg,txt | sed "s/^.*http/http/p" | anew -q ${domain}_url_extract.txt
fi
- python3 $tools/github-endpoints.py -d $domain | anew -q ${domain}_url_extract.txt
+ github-endpoints -d $domain -t $tools/.github_tokens -raw | anew -q ${domain}_url_extract.txt
sed -i '/^http/!d' ${domain}_url_extract.txt
#cat ${domain}_url_extract.txt | httpx -follow-redirects -threads 100 -silent -status-code | grep "[200]" | cut -d ' ' -f1 | anew -q ${domain}_url_extract_live.txt && touch $called_fn_dir/.${FUNCNAME[0]}
end=`date +%s`
diff --git a/update.sh b/update.sh
index 9f60dbe..2601164 100755
--- a/update.sh
+++ b/update.sh
@@ -90,7 +90,7 @@ $SUDO chmod 754 /usr/local/bin/findomain
eval wget -N -c -O ~/.gf/potential.json https://raw.githubusercontent.com/devanshbatham/ParamSpider/master/gf_profiles/potential.json $DEBUG_STD
eval wget -N -c -O ~/.config/amass/config.ini https://raw.githubusercontent.com/OWASP/Amass/master/examples/config.ini $DEBUG_STD
-eval wget -N -c -O $dir/github-endpoints.py https://gist.githubusercontent.com/six2dez/d1d516b606557526e9a78d7dd49cacd3/raw/8e7f1e1139ba3501d15dcd2ad82338d303f0b404/github-endpoints.py $DEBUG_STD
+#eval wget -N -c -O $dir/github-endpoints.py https://gist.githubusercontent.com/six2dez/d1d516b606557526e9a78d7dd49cacd3/raw/8e7f1e1139ba3501d15dcd2ad82338d303f0b404/github-endpoints.py $DEBUG_STD
eval wget -N -c -O $dir/getjswords.py https://raw.githubusercontent.com/m4ll0k/Bug-Bounty-Toolz/master/getjswords.py $DEBUG_STD
eval wget -N -c -O $dir/subdomains.txt https://gist.githubusercontent.com/jhaddix/86a06c5dc309d08580a018c66354a056/raw/96f4e51d96b2203f19f6381c8c545b278eaa0837/all.txt $DEBUG_STD
eval wget -N -c -O $dir/resolvers.txt https://raw.githubusercontent.com/janmasarik/resolvers/master/resolvers.txt $DEBUG_STD