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

Golang complete install

six2dez6feeaba6abc4
diff --git a/install.sh b/install.sh
index 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/bin
fi
rm -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 $DEBU
eval git clone https://github.com/obheda12/GitDorker $dir/GitDorker $DEBUG_STD
printf "${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_STD
printf "${bgreen} 80%% done${reset}\n\n"
if [ "True" = "$IS_ARM" ]
diff --git a/reconftw.sh b/reconftw.sh
index 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.txt
printf "${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/null
sed -i '/^Running against/d; /^Invalid input/d; /^$/d' ${domain}_js_endpoints.txt
printf "${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