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

Raspberry Pi support

Bilel Eljaamii6bec731a1afd
diff --git a/update.sh b/update.sh
index c9015db..b485e35 100644
--- a/update.sh
+++ b/update.sh
@@ -13,6 +13,13 @@ reset='\033[0m'
DEBUG_STD="&>/dev/null"
DEBUG_ERROR="2>/dev/null"
+if grep -q "ARMv" /proc/cpuinfo
+then
+ IS_ARM="True";
+else
+ IS_ARM="False";
+fi
+
[ ! -d "~/.gf" ] && mkdir -p ~/.gf
[ ! -d "~/Tools" ] && mkdir -p ~/Tools
dir=~/Tools
@@ -25,7 +32,7 @@ elif [ -f /etc/os-release ]; then sudo yum install git wget;
fi
#Tools to be updated
-repos="s0md3v/Arjun six2dez/degoogle_hunter 1ndianl33t/Gf-Patterns gwen001/github-search dark-warlord14/LinkFinder projectdiscovery/nuclei-templates devanshbatham/ParamSpider nsonaniya2010/SubDomainizer haccer/subjack s0md3v/Corsy pielco11/fav-up tomnomnom/gf codingo/Interlace blechschmidt/massdns six2dez/OneListForAll m4ll0k/SecretFinder devanshbatham/OpenRedireX m8r0wn/pymeta"
+repos="s0md3v/Arjun six2dez/degoogle_hunter 1ndianl33t/Gf-Patterns gwen001/github-search dark-warlord14/LinkFinder projectdiscovery/nuclei-templates devanshbatham/ParamSpider nsonaniya2010/SubDomainizer haccer/subjack s0md3v/Corsy pielco11/fav-up tomnomnom/gf codingo/Interlace blechschmidt/massdns six2dez/OneListForAll m4ll0k/SecretFinder devanshbatham/OpenRedireX m8r0wn/pymeta tillson/git-hound"
printf "\n${bgreen}--==[ ************************************************************************************ ]==--\n"
printf "${bred} reconftw updater script (apt/rpm/pacman compatible)${reset}\n"
@@ -35,10 +42,10 @@ for repo in ${repos}; do
printf "${bgreen}#######################################################################\n"
printf "${bblue} Updating ${repo} ${reset}\n"
if [ ! -d "$dir/$(basename $repo)" ]; then
- git clone https://github.com/$repo "$dir/$(basename $repo)" $DEBUG_STD
+ eval git clone https://github.com/$repo "$dir/$(basename $repo)" $DEBUG_STD
else
cd "$dir/$(basename $repo)"
- git pull origin master $DEBUG_STD
+ eval git pull origin master $DEBUG_STD
if [ "massdns" = "$(basename $repo)" ]; then
make $DEBUG_STD && sudo cp bin/massdns /usr/bin/
elif [ "Gf-Patterns" = "$(basename $repo)" ]; then
@@ -46,23 +53,37 @@ for repo in ${repos}; do
elif [ "gf" = "$(basename $repo)" ]; then
cp -r examples ~/.gf
elif [ "Interlace" = "$(basename $repo)" ] || [ "LinkFinder" = "$(basename $repo)" ] || [ "pymeta" = "$(basename $repo)" ]; then
- sudo python3 setup.py install $DEBUG_STD
+ eval sudo python3 setup.py install $DEBUG_STD
+ fi
+ if [ "True" = "$IS_ARM" ] && [ "git-hound" = "$(basename $repo)" ]
+ then
+ go build && chmod 754 git-hound && mv git-hound /usr/local/bin/
fi
fi
printf "${bblue}\n Updating ${repo} is finished ${reset}\n"
printf "${bgreen}#######################################################################\n"
done
+
printf "${bgreen}#######################################################################\n"
printf "${bblue} Updating Files \n"
-sudo wget -N -c -O /usr/local/bin/findomain https://github.com/Edu4rdSHL/findomain/releases/latest/download/findomain-linux $DEBUG_STD
-wget -N -c -O ~/.gf/potential.json https://raw.githubusercontent.com/devanshbatham/ParamSpider/master/gf_profiles/potential.json $DEBUG_STD
-wget -N -c -O $dir/github-endpoints.py https://gist.githubusercontent.com/six2dez/d1d516b606557526e9a78d7dd49cacd3/raw/8e7f1e1139ba3501d15dcd2ad82338d303f0b404/github-endpoints.py $DEBUG_STD
-wget -N -c -O $dir/getjswords.py https://raw.githubusercontent.com/m4ll0k/Bug-Bounty-Toolz/master/getjswords.py $DEBUG_STD
-wget -N -c -O $dir/subdomains.txt https://gist.githubusercontent.com/jhaddix/86a06c5dc309d08580a018c66354a056/raw/96f4e51d96b2203f19f6381c8c545b278eaa0837/all.txt $DEBUG_STD
-wget -N -c -O $dir/resolvers.txt https://raw.githubusercontent.com/janmasarik/resolvers/master/resolvers.txt $DEBUG_STD
-wget -N -c -O $dir/permutations_list.txt https://gist.githubusercontent.com/six2dez/ffc2b14d283e8f8eff6ac83e20a3c4b4/raw/137bb6b60c616552c705e93a345c06cec3a2cb1f/permutations_list.txt $DEBUG_STD
-wget -N -c -O $dir/ssrf.py https://gist.githubusercontent.com/h4ms1k/adcc340495d418fcd72ec727a116fea2/raw/ea0774de5e27f9bc855207b175249edae2e9ccef/asyncio_ssrf.py $DEBUG_STD
+if [ "True" = "$IS_ARM" ]
+ then
+ 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
+ sudo mv findomain-linux /usr/local/bin/findomain
+fi
+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 $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
+eval wget -N -c -O $dir/permutations_list.txt https://gist.githubusercontent.com/six2dez/ffc2b14d283e8f8eff6ac83e20a3c4b4/raw/137bb6b60c616552c705e93a345c06cec3a2cb1f/permutations_list.txt $DEBUG_STD
+eval wget -N -c -O $dir/ssrf.py https://gist.githubusercontent.com/h4ms1k/adcc340495d418fcd72ec727a116fea2/raw/ea0774de5e27f9bc855207b175249edae2e9ccef/asyncio_ssrf.py $DEBUG_STD
printf "${bblue}\n Updating Files is finished ${reset}\n"
printf "${bgreen}#######################################################################\n"