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

Better ARM detection fixes #761

six2dezc9143bd98c85
diff --git a/install.sh b/install.sh
index fe3cfbd..44d0c35 100755
--- a/install.sh
+++ b/install.sh
@@ -6,22 +6,16 @@ dir=${tools}
double_check=false
# ARM Detection
-if [ -f "/proc/cpuinfo" ]; then
- if grep -q "Raspberry Pi 3" /proc/cpuinfo; then
- IS_ARM="True"
- RPI_3="True"
+if [[ $(uname -m) == "amd64" ]] || [[ $(uname -m) == "x86_64" ]]; then
+ IS_ARM="False"
+fi
+if [[ $(uname -m) == "arm64" ]] || [[ $(uname -m) == "armv6l" ]]; then
+ IS_ARM="True"
+ if [[ $(uname -m) == "arm64" ]]; then
RPI_4="False"
- elif grep -q "Raspberry Pi 4" /proc/cpuinfo; then
- IS_ARM="True"
- RPI_4="True"
- RPI_3="False"
else
- IS_ARM="False"
+ RPI_3="True"
fi
-elif grep -iq "arm" <<< "$(/usr/bin/arch)";then
- IS_ARM="True"
-else
- IS_ARM="False"
fi
#Mac Osx Detecting