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
Shell bug-bountybugbountybugbounty-tooldnshackingnucleiosintpenetration-testingpentestpentest-toolpentestingreconreconnaissancescannersecuritysecurity-toolssubdomainsubdomain-enumerationvulnerabilities
Golang complete install
six2dez6feeaba6abc4
diff --git a/install.sh b/install.shindex 34c840a..efb50a5 100755--- a/install.sh+++ b/install.sh@@ -57,6 +57,30 @@ if [[ $(eval type go $DEBUG_ERROR | grep -o 'go is') == "go is" ]]$SUDO cp /usr/local/go/bin/go /usr/binfirm -rf go$LATEST_GO*+if [ -f ~/.bashrc ]+then+cat << EOF >> ~/.bashrc++\# Golang vars+export GOROOT=/usr/local/go+export GOPATH=\$HOME/go+export PATH=\$GOPATH/bin:\$GOROOT/bin:\$PATH+EOF+source ~/.bashrc+fi++if [ -f ~/.zshrc ]+then+cat << EOF >> ~/.zshrc++\# Golang vars+export GOROOT=/usr/local/go+export GOPATH=\$HOME/go+export PATH=\$GOPATH/bin:\$GOROOT/bin:\$PATH+EOF+source ~/.bashrc+fi+fi[ -n "$GOPATH" ] || { printf "${bred} GOPATH env var not detected, add Golang env vars to your \$HOME/.bashrc or \$HOME/.zshrc:\n\n export GOROOT=/usr/local/go\n export GOPATH=\$HOME/go\n export PATH=\$GOPATH/bin:\$GOROOT/bin:\$PATH\n\n"; exit 1; }@@ -138,7 +162,8 @@ eval git clone https://github.com/gwen001/github-search $dir/github-search $DEBUeval git clone https://github.com/obheda12/GitDorker $dir/GitDorker $DEBUG_STDprintf "${bgreen} 70%% done${reset}\n\n"eval git clone https://github.com/drwetter/testssl.sh $dir/testssl.sh $DEBUG_STD-eval pip3 install dnsgen $DEBUG_STD+eval $SUDO pip3 install dnsgen $DEBUG_STD+eval $SUDO pip3 install webscreenshot $DEBUG_STDprintf "${bgreen} 80%% done${reset}\n\n"if [ "True" = "$IS_ARM" ]diff --git a/reconftw.sh b/reconftw.shindex bb03fdb..057266c 100755--- a/reconftw.sh+++ b/reconftw.sh@@ -600,6 +600,7 @@ jschecks(){cat ${domain}_jsfile_links.txt | httpx -follow-redirects -silent -threads 100 -status-code | grep "[200]" | cut -d ' ' -f1 | anew -q ${domain}_js_livelinks.txtprintf "${yellow} Running : Gathering endpoints 3/5${reset}\n"interlace -tL ${domain}_js_livelinks.txt -threads 10 -c "python3 $tools/LinkFinder/linkfinder.py -d -i _target_ -o cli >> ${domain}_js_endpoints.txt" &>/dev/null+ cat ${domain}_js_livelinks.txt | grep -o -E "(https?://)?/?[{}a-z0-9A-Z_\.-]{2,}/[{}/a-z0-9A-Z_\.-]+" | anew -q ${domain}_js_endpoints.txt" &>/dev/nullsed -i '/^Running against/d; /^Invalid input/d; /^$/d' ${domain}_js_endpoints.txtprintf "${yellow} Running : Gathering secrets 4/5${reset}\n"cat ${domain}_js_livelinks.txt | nuclei -silent -t ~/nuclei-templates/exposed-tokens/ -o ${domain}_js_secrets.txt