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

Closes #51

Bilel Eljaamii1353990ca2d2
diff --git a/update.sh b/update.sh
index 0917000..52fbb45 100755
--- a/update.sh
+++ b/update.sh
@@ -3,7 +3,6 @@
#@TODO:
# - Update testssl.sh
# - Update Go packages
- # - Get git-hound latest version
bred='\033[1;31m'
bblue='\033[1;34m'
@@ -78,7 +77,7 @@ if [ "True" = "$IS_ARM" ]
eval wget -N -c https://github.com/Edu4rdSHL/findomain/releases/latest/download/findomain-rpi $DEBUG_STD
$SUDO mv findomain-rpi /usr/local/bin/findomain
else
- eval wget -N -c -O /usr/local/bin/findomain https://github.com/Edu4rdSHL/findomain/releases/latest/download/findomain-linux $DEBUG_STD
+ eval wget -N -c https://github.com/Edu4rdSHL/findomain/releases/latest/download/findomain-linux $DEBUG_STD
$SUDO mv findomain-linux /usr/local/bin/findomain
fi
$SUDO chmod 754 /usr/local/bin/findomain
@@ -103,10 +102,38 @@ printf "${bgreen}###############################################################
#Updating installed python packages
printf "${bgreen}#######################################################################\n"
printf "${bblue} Updating installed python packages \n"
-cat $dir/*/requirements.txt | grep -v "=" | uniq | xargs pip3 install -U $DEBUG_STD
+cat $dir/*/requirements.txt | grep -v "=" | uniq | xargs pip3 install -U
printf "${bblue}\n Updating installed python packages is finished ${reset}\n"
printf "${bgreen}#######################################################################\n"
+#Updating Golang
+printf "${bgreen}#######################################################################\n"
+printf "${bblue} Updating Golang \n"
+if [ "True" = "$IS_ARM" ]; then
+ LATEST_GO=$(wget -qO- https://golang.org/dl/ | grep -oP 'go([0-9\.]+)\.linux-armv6l\.tar\.gz' | head -n 1 | grep -oP 'go[0-9\.]+' | grep -oP '[0-9\.]+' | head -c -2)
+ if [ "go$LATEST_GO" = $(go version | cut -d " " -f3) ]
+ then
+ printf "${bblue}\n Golang is up to date ${reset}\n"
+ else
+ wget https://dl.google.com/go/go$LATEST_GO.linux-armv6l.tar.gz
+ $SUDO tar -C /usr/local -xzf go$LATEST_GO.linux-armv6l.tar.gz
+ $SUDO cp /usr/local/go/bin/go /usr/bin
+ fi
+else
+ LATEST_GO=$(wget -qO- https://golang.org/dl/ | grep -oP 'go([0-9\.]+)\.linux-amd64\.tar\.gz' | head -n 1 | grep -oP 'go[0-9\.]+' | grep -oP '[0-9\.]+' | head -c -2)
+ if [ "go$LATEST_GO" = $(go version | cut -d " " -f3) ]
+ then
+ printf "${bblue}\n Golang is up to date ${reset}\n"
+ else
+ wget https://dl.google.com/go/go$LATEST_GO.linux-amd64.tar.gz
+ $SUDO tar -C /usr/local -xzf go$LATEST_GO.linux-amd64.tar.gz
+ $SUDO cp /usr/local/go/bin/go /usr/bin
+ fi
+fi
+eval rm -rf go$LATEST_GO* $DEBUG_STD
+printf "${bblue}\n Updating Golang is finished ${reset}\n"
+printf "${bgreen}#######################################################################\n"
+
printf "\n${bgreen}--==[ ************************************************************************************ ]==--\n"
printf "${bred} You are up to date, happy hacking${reset}\n"