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
zone transfer, 4xxbypass and installer/updater
six2dezc5ad14d79ef7
diff --git a/install.sh b/install.shindex 62ad58a..75fbaab 100755--- a/install.sh+++ b/install.sh@@ -1,13 +1,60 @@#!/bin/bash-bgreen='\033[1;32m'-yellow='\033[0;33m'-reset='\033[0m'-bred='\033[1;31m'--DEBUG_STD="&>/dev/null"-DEBUG_ERROR="2>/dev/null"-SCRIPTPATH="$( cd "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P )"+. ./reconftw.cfg++declare -A gotools+gotools["gf"]="go get -v github.com/tomnomnom/gf"+gotools["qsreplace"]="go get -v github.com/tomnomnom/qsreplace"+gotools["Amass"]="GO111MODULE=on go get -v github.com/OWASP/Amass/v3/..."+gotools["ffuf"]="go get -u github.com/ffuf/ffuf"+gotools["assetfinder"]="go get -v github.com/tomnomnom/assetfinder"+gotools["github-subdomains"]="go get -u github.com/gwen001/github-subdomains"+gotools["cf-check"]="go get -v github.com/dwisiswant0/cf-check"+gotools["waybackurls"]="go get -v github.com/tomnomnom/hacks/waybackurls"+gotools["nuclei"]="GO111MODULE=on go get -v github.com/projectdiscovery/nuclei/v2/cmd/nuclei"+gotools["anew"]="go get -v github.com/tomnomnom/anew"+gotools["notify"]="GO111MODULE=on go get -v github.com/projectdiscovery/notify/cmd/notify"+gotools["mildew"]="go get -u github.com/daehee/mildew/cmd/mildew"+gotools["dirdar"]="go get -u github.com/m4dm0e/dirdar"+gotools["unfurl"]="go get -v github.com/tomnomnom/unfurl"+gotools["httpx"]="GO111MODULE=on go get -v github.com/projectdiscovery/httpx/cmd/httpx"+gotools["github-endpoints"]="go get -u github.com/gwen001/github-endpoints"+gotools["dnsx"]="GO111MODULE=on go get -v github.com/projectdiscovery/dnsx/cmd/dnsx"+gotools["subfinder"]="GO111MODULE=on go get -v github.com/projectdiscovery/subfinder/v2/cmd/subfinder"+gotools["gau"]="go get -v github.com/lc/gau"+gotools["subjs"]="GO111MODULE=on go get -u -v github.com/lc/subjs"+gotools["Gxss"]="go get -v github.com/KathanP19/Gxss"+gotools["shuffledns"]="GO111MODULE=on go get -v github.com/projectdiscovery/shuffledns/cmd/shuffledns"+gotools["gospider"]="go get -u github.com/jaeles-project/gospider"+gotools["crobat"]="go get -v github.com/cgboal/sonarsearch/crobat"+gotools["crlfuzz"]="GO111MODULE=on go get -v github.com/dwisiswant0/crlfuzz/cmd/crlfuzz"++declare -A repos+repos["degoogle_hunter"]="six2dez/degoogle_hunter"+repos["pwndb"]="davidtavarez/pwndb"+repos["dnsvalidator"]="vortexau/dnsvalidator"+repos["dnsrecon"]="darkoperator/dnsrecon"+repos["theHarvester"]="laramies/theHarvester"+repos["brutespray"]="x90skysn3k/brutespray"+repos["wafw00f"]="EnableSecurity/wafw00f"+repos["Arjun"]="s0md3v/Arjun"+repos["gf"]="tomnomnom/gf"+repos["Gf-Patterns"]="1ndianl33t/Gf-Patterns"+repos["XSStrike"]="s0md3v/XSStrike"+repos["github-search"]="gwen001/github-search"+repos["crtfinder"]="eslam3kl/crtfinder"+repos["LinkFinder"]="dark-warlord14/LinkFinder"+repos["dnsgen"]="ProjectAnte/dnsgen"+repos["ParamSpider"]="devanshbatham/ParamSpider"+repos["Corsy"]="s0md3v/Corsy"+repos["CMSeeK"]="Tuhinshubhra/CMSeeK"+repos["fav-up"]="pielco11/fav-up"+repos["Interlace"]="codingo/Interlace"+repos["massdns"]="blechschmidt/massdns"+repos["OpenRedireX"]="devanshbatham/OpenRedireX"+repos["GitDorker"]="obheda12/GitDorker"++dir=${tools}if grep -q "ARMv" /proc/cpuinfothen@@ -23,7 +70,7 @@ elsefiprintf "\n\n${bgreen}#######################################################################\n"-printf "${bgreen} reconFTW installer script ${reset}\n\n"+printf "${bgreen} reconFTW installer/updater script ${reset}\n\n"install_apt(){eval $SUDO apt install chromium-browser -y $DEBUG_STD@@ -41,27 +88,28 @@ install_pacman(){eval $SUDO systemctl enable --now tor.service $DEBUG_STD}-#installing latest Golang version-if [[ $(eval type go $DEBUG_ERROR | grep -o 'go is') == "go is" ]]+# Installing latest Golang version+version=$(curl -s https://golang.org/VERSION?m=text)+eval type -P go $DEBUG_STD || { golang_installed=false; }+printf "${yellow} Running: Installing/Updating Golang ${reset}\n\n"+if [[ $(eval type go $DEBUG_ERROR | grep -o 'go is') == "go is" ]] && [ "$version" = $(go version | cut -d " " -f3) ]then- printf "${bgreen} Golang is already installed ${reset}\n\n"+ printf "${bgreen} Golang is already installed and updated ${reset}\n\n"else- printf "${yellow} Running: Installing Golang ${reset}\n\n"- version=$(curl https://golang.org/VERSION?m=text)+ eval $SUDO rm -rf /usr/local/go $DEBUG_STDif [ "True" = "$IS_ARM" ]; theneval wget https://dl.google.com/go/${version}.linux-armv6l.tar.gz $DEBUG_STDeval $SUDO tar -C /usr/local -xzf ${version}.linux-armv6l.tar.gz $DEBUG_STD- $SUDO cp /usr/local/go/bin/go /usr/binelseeval wget https://dl.google.com/go/${version}.linux-amd64.tar.gz $DEBUG_STDeval $SUDO tar -C /usr/local -xzf ${version}.linux-amd64.tar.gz $DEBUG_STD- $SUDO cp /usr/local/go/bin/go /usr/binfi+ eval $SUDO cp /usr/local/go/bin/go /usr/binrm -rf go$LATEST_GO*export GOROOT=/usr/local/goexport GOPATH=$HOME/goexport PATH=$GOPATH/bin:$GOROOT/bin:$PATH-if [ -f ~/.bashrc ]+if [ -f ~/.bashrc ] && [ "$golang_installed" = false ]thencat << EOF >> ~/.bashrc@@ -72,7 +120,7 @@ export PATH=\$GOPATH/bin:\$GOROOT/bin:\$PATHEOFfi-if [ -f ~/.zshrc ]+if [ -f ~/.zshrc ] && [ $golang_installed = false ]thencat << EOF >> ~/.zshrc@@ -83,7 +131,6 @@ export PATH=\$GOPATH/bin:\$GOROOT/bin:\$PATHEOFfiprintf "${bgreen} Golang installed${reset}\n"-# exitfi[ -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; }@@ -96,139 +143,81 @@ elif [ -f /etc/arch-release ]; then install_pacman;elif [ -f /etc/os-release ]; then install_yum; #/etc/os-release fall in yum for some RedHat and Amazon Linux instancesfi-printf "${bgreen} System packages installed${reset}\n\n"printf "${yellow} Running: Installing requirements ${reset}\n\n"-if ! command -v phantomjs &> /dev/null-then- cd /opt- if [ "True" = "$IS_ARM" ]; then- mkdir -p phantomjs-armv6-rpi-v2.1.1 && cd phantomjs-armv6-rpi-v2.1.1- eval $SUDO wget https://github.com/piksel/phantomjs-raspberrypi/releases/download/v2.1.1-r/phantomjs-armv6-rpi-v2.1.1.tar.xz $DEBUG_STD- eval $SUDO tar xvf phantomjs-armv6-rpi-v2.1.1.tar.xz $DEBUG_STD- eval $SUDO ln -s /opt/phantomjs-armv6-rpi-v2.1.1/bin/phantomjs /usr/local/bin/phantomjs $DEBUG_STD- else- eval $SUDO wget https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-2.1.1-linux-x86_64.tar.bz2 $DEBUG_STD- eval $SUDO tar xvf phantomjs-2.1.1-linux-x86_64.tar.bz2 $DEBUG_STD- eval $SUDO ln -s /opt/phantomjs-2.1.1-linux-x86_64/bin/phantomjs /usr/local/bin/phantomjs $DEBUG_STD++mkdir -p ~/.gf+mkdir -p $tools+mkdir -p ~/.config/notify/+mkdir -p ~/.config/amass/+touch $dir/.github_tokens++eval pip3 install -U -r requirements.txt $DEBUG_STD++printf "${yellow} Running: Installing Golang tools ${reset}\n\n"+for gotool in "${!gotools[@]}"; do+ eval ${gotools[$gotool]} $DEBUG_STD+done++printf "${yellow} Running: Installing repositories ${reset}\n\n"+for repo in "${!repos[@]}"; do+ eval git clone https://github.com/${repos[$repo]} $dir/$repo $DEBUG_STD+ cd $dir/$repo+ eval git pull $DEBUG_STD+ if [ -s "setup.py" ]; then+ eval $SUDO python3 setup.py install $DEBUG_STDfi- cd $SCRIPTPATH-fi+ if [ "massdns" = "$repo" ]; then+ eval make $DEBUG_STD && strip -s bin/massdns && eval $SUDO cp bin/massdns /usr/bin/ $DEBUG_ERROR+ elif [ "gf" = "$repo" ]; then+ eval cp -r examples ~/.gf $DEBUG_ERROR+ elif [ "Gf-Patterns" = "$repo" ]; then+ eval mv *.json ~/.gf $DEBUG_ERROR+ fi+ cd $dir+done-[ ! -d "~/.gf" ] && mkdir -p ~/.gf-[ ! -d "~/Tools" ] && mkdir -p ~/Tools-dir=~/Tools--eval pip3 install -r requirements.txt $DEBUG_STD-printf "${bgreen} Requirements installed\n\n Installation begins!\n\n${reset}"-eval go get -v github.com/tomnomnom/gf $DEBUG_STD-eval go get -v github.com/tomnomnom/qsreplace $DEBUG_STD-eval GO111MODULE=on go get -v github.com/OWASP/Amass/v3/... $DEBUG_STD-eval go get -v github.com/ffuf/ffuf $DEBUG_STD-eval go get -v github.com/tomnomnom/assetfinder $DEBUG_STD-eval go get -u github.com/gwen001/github-subdomains $DEBUG_STD-printf "${bgreen} 10%% done${reset}\n\n"-eval go get -v github.com/dwisiswant0/cf-check $DEBUG_STD-eval go get -v github.com/tomnomnom/hacks/waybackurls $DEBUG_STD-eval GO111MODULE=on go get -v github.com/projectdiscovery/nuclei/v2/cmd/nuclei $DEBUG_STD-eval go get -v github.com/tomnomnom/anew $DEBUG_STD-eval GO111MODULE=on go get -v github.com/projectdiscovery/notify/cmd/notify $DEBUG_STD-eval go get -u github.com/daehee/mildew/cmd/mildew $DEBUG_STD-printf "${bgreen} 20%% done${reset}\n\n"-eval go get -v github.com/tomnomnom/unfurl $DEBUG_STDeval git clone https://github.com/projectdiscovery/nuclei-templates ~/nuclei-templates $DEBUG_STD-eval git clone https://github.com/eslam3kl/crtfinder $dir/crtfinder $DEBUG_STD-eval git clone https://github.com/davidtavarez/pwndb $dir/pwndb $DEBUG_STDeval nuclei -update-templates $DEBUG_STD+sed -i 's/^miscellaneous/#miscellaneous/' ~/nuclei-templates/.nuclei-ignoreeval git clone --depth 1 https://github.com/sqlmapproject/sqlmap.git $dir/sqlmap $DEBUG_STD-eval GO111MODULE=on go get -v github.com/projectdiscovery/httpx/cmd/httpx $DEBUG_STD-printf "${bgreen} 30%% done${reset}\n\n"-eval go get -u github.com/gwen001/github-endpoints $DEBUG_STD-eval git clone https://github.com/s0md3v/XSStrike $dir/XSStrike $DEBUG_STD-eval git clone https://github.com/1ndianl33t/Gf-Patterns $dir/Gf-Patterns $DEBUG_STD-eval git clone https://github.com/tomnomnom/gf $dir/gf $DEBUG_STD-eval git clone https://github.com/EnableSecurity/wafw00f $dir/wafw00f $DEBUG_STD-eval GO111MODULE=on go get -v github.com/projectdiscovery/dnsx/cmd/dnsx $DEBUG_STD-cp -r $dir/gf/examples ~/.gf-cp $dir/Gf-Patterns/*.json ~/.gf-printf "${bgreen} 40%% done${reset}\n\n"-eval GO111MODULE=on go get -v github.com/projectdiscovery/subfinder/v2/cmd/subfinder $DEBUG_STD-eval go get -v github.com/lc/gau $DEBUG_STD-eval GO111MODULE=on go get -u -v github.com/lc/subjs $DEBUG_STD-eval go get -v github.com/KathanP19/Gxss $DEBUG_STD-eval git clone https://github.com/blechschmidt/massdns $dir/massdns $DEBUG_STD-eval git clone https://github.com/s0md3v/Arjun $dir/Arjun $DEBUG_STD-eval go get -u github.com/rjeczalik/bin/cmd/gobin $DEBUG_STD-printf "${bgreen} 50%% done${reset}\n\n"-eval git clone https://github.com/devanshbatham/ParamSpider $dir/ParamSpider $DEBUG_STD-eval git clone https://github.com/dark-warlord14/LinkFinder $dir/LinkFinder $DEBUG_STD-eval git clone https://github.com/six2dez/degoogle_hunter $dir/degoogle_hunter $DEBUG_STD-eval GO111MODULE=on go get -v github.com/projectdiscovery/shuffledns/cmd/shuffledns $DEBUG_STD-eval go get -u github.com/jaeles-project/gospider $DEBUG_STD-eval go get -v github.com/cgboal/sonarsearch/crobat $DEBUG_STD-eval GO111MODULE=on go get -v github.com/dwisiswant0/crlfuzz/cmd/crlfuzz $DEBUG_STD-printf "${bgreen} 60%% done${reset}\n\n"-eval git clone https://github.com/Tuhinshubhra/CMSeeK $dir/CMSeeK $DEBUG_STD-eval git clone https://github.com/pielco11/fav-up $dir/fav-up $DEBUG_STD-eval git clone https://github.com/s0md3v/Corsy $dir/Corsy $DEBUG_STD-eval git clone https://github.com/codingo/Interlace $dir/Interlace $DEBUG_STD-eval git clone https://github.com/gwen001/github-search $dir/github-search $DEBUG_STD-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/ProjectAnte/dnsgen $dir/dnsgen $DEBUG_STD-eval git clone https://github.com/drwetter/testssl.sh $dir/testssl.sh $DEBUG_STD-eval git clone https://github.com/laramies/theHarvester $dir/theHarvester $DEBUG_STD-eval git clone https://github.com/x90skysn3k/brutespray $dir/brutespray $DEBUG_STD-eval git clone https://github.com/vortexau/dnsvalidator $dir/dnsvalidator $DEBUG_STD-printf "${bgreen} 80%% done${reset}\n\n"+if [ "True" = "$IS_ARM" ]then- eval wget https://github.com/Edu4rdSHL/findomain/releases/latest/download/findomain-rpi $DEBUG_STD- $SUDO mv findomain-rpi /usr/local/bin/findomain+ eval wget -N -c https://github.com/Edu4rdSHL/findomain/releases/latest/download/findomain-rpi $DEBUG_STD+ eval $SUDO mv findomain-rpi /usr/local/bin/findomainelse- eval wget https://github.com/Edu4rdSHL/findomain/releases/latest/download/findomain-linux $DEBUG_STD- $SUDO mv findomain-linux /usr/local/bin/findomain+ eval wget -N -c https://github.com/Edu4rdSHL/findomain/releases/latest/download/findomain-linux $DEBUG_STD+ eval $SUDO mv findomain-linux /usr/local/bin/findomainfi--$SUDO chmod 755 /usr/local/bin/findomain-cd $dir/massdns; eval make $DEBUG_STD-$SUDO cp $dir/massdns/bin/massdns /usr/local/bin/--cd $dir/Interlace && eval $SUDO python3 setup.py install $DEBUG_STD-cd $dir/LinkFinder && eval $SUDO python3 setup.py install $DEBUG_STD-cd $dir/dnsgen && eval $SUDO python3 setup.py install $DEBUG_STD-cd $dir/Arjun && eval $SUDO python3 setup.py install $DEBUG_STD-cd $dir/wafw00f && eval $SUDO python3 setup.py install $DEBUG_STD-cd $dir/dnsvalidator && eval $SUDO python3 setup.py install $DEBUG_STD-cd $dir-eval git clone https://github.com/devanshbatham/OpenRedireX $dir/OpenRedireX $DEBUG_STD-printf "${bgreen} 90%% done${reset}\n\n"+eval $SUDO chmod 755 /usr/local/bin/findomaineval subfinder $DEBUG_STD-mkdir -p ~/.config/notify/-mkdir -p ~/.config/amass/-eval wget -nc -O ~/.config/amass/config.ini https://raw.githubusercontent.com/OWASP/Amass/master/examples/config.ini $DEBUG_STD-cd ~/.gf; eval wget -O potential.json https://raw.githubusercontent.com/devanshbatham/ParamSpider/master/gf_profiles/potential.json $DEBUG_STD; cd $dir-touch $dir/.github_tokens-eval wget -O getjswords.py https://raw.githubusercontent.com/m4ll0k/Bug-Bounty-Toolz/master/getjswords.py $DEBUG_STD-eval wget -O subdomains_big.txt https://s3.amazonaws.com/assetnote-wordlists/data/manual/best-dns-wordlist.txt-eval wget -O subdomains_big2.txt https://gist.githubusercontent.com/jhaddix/86a06c5dc309d08580a018c66354a056/raw/96f4e51d96b2203f19f6381c8c545b278eaa0837/all.txt $DEBUG_STD++printf "${yellow} Running: Downloading required files ${reset}\n\n"+## Downloads+eval wget -N -c -O ~/.config/amass/config.ini https://raw.githubusercontent.com/OWASP/Amass/master/examples/config.ini $DEBUG_STD+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 getjswords.py https://raw.githubusercontent.com/m4ll0k/Bug-Bounty-Toolz/master/getjswords.py $DEBUG_STD+eval wget -N -c -O subdomains_big.txt https://s3.amazonaws.com/assetnote-wordlists/data/manual/best-dns-wordlist.txt+eval wget -N -c -O subdomains_big2.txt https://gist.githubusercontent.com/jhaddix/86a06c5dc309d08580a018c66354a056/raw/96f4e51d96b2203f19f6381c8c545b278eaa0837/all.txt $DEBUG_STD+eval wget -N -c -O subdomains.txt https://gist.githubusercontent.com/six2dez/a307a04a222fab5a57466c51e1569acf/raw/1bcdf2d61df08e66fd2d63b6a840f02c3a2ae24c/subdomains.txt $DEBUG_STD+eval wget -N -c -O permutations_list.txt https://gist.githubusercontent.com/six2dez/ffc2b14d283e8f8eff6ac83e20a3c4b4/raw/137bb6b60c616552c705e93a345c06cec3a2cb1f/permutations_list.txt $DEBUG_STD+eval wget -N -c -O ssrf.py https://gist.githubusercontent.com/h4ms1k/adcc340495d418fcd72ec727a116fea2/raw/ea0774de5e27f9bc855207b175249edae2e9ccef/asyncio_ssrf.py $DEBUG_STD+eval wget -N -c -O fuzz_wordlist.txt https://raw.githubusercontent.com/six2dez/OneListForAll/main/onelistforallmicro.txt $DEBUG_STD+eval wget -N -c -O lfi_wordlist.txt https://raw.githubusercontent.com/xmendez/wfuzz/master/wordlist/vulns/dirTraversal-nix.txt $DEBUG_STD+eval wget -N -c -O ~/.config/notify/notify.conf https://gist.githubusercontent.com/six2dez/23a996bca189a11e88251367e6583053/raw/a66c4d8cf47a3bc95f5e9ba84773428662ea760c/notify_sample.conf $DEBUG_ERROR+eval wget -N -c -O ${GOPATH}/bin/gowitness https://github.com/sensepost/gowitness/releases/download/2.3.3/gowitness-2.3.3-linux-amd64 $DEBUG_STD++printf "${yellow} Running: Performing last configurations ${reset}\n\n"+## Last stepseval cat subdomains_big2.txt $DEBUG_ERROR | anew -q subdomains_big.txteval rm subdomains_big2.txt $DEBUG_ERROR-eval wget -O subdomains.txt https://gist.githubusercontent.com/six2dez/a307a04a222fab5a57466c51e1569acf/raw/1bcdf2d61df08e66fd2d63b6a840f02c3a2ae24c/subdomains.txt $DEBUG_STDeval dnsvalidator -tL https://public-dns.info/nameservers.txt -threads 100 -o resolvers.txt $DEBUG_STD-eval wget -O permutations_list.txt https://gist.githubusercontent.com/six2dez/ffc2b14d283e8f8eff6ac83e20a3c4b4/raw/137bb6b60c616552c705e93a345c06cec3a2cb1f/permutations_list.txt $DEBUG_STD-eval wget -O ssrf.py https://gist.githubusercontent.com/h4ms1k/adcc340495d418fcd72ec727a116fea2/raw/ea0774de5e27f9bc855207b175249edae2e9ccef/asyncio_ssrf.py $DEBUG_STD-eval wget -O fuzz_wordlist.txt https://raw.githubusercontent.com/six2dez/OneListForAll/main/onelistforallmicro.txt $DEBUG_STD-eval wget -O lfi_wordlist.txt https://raw.githubusercontent.com/xmendez/wfuzz/master/wordlist/vulns/dirTraversal-nix.txt $DEBUG_STD-eval wget -nc -O ~/.config/notify/notify.conf https://gist.githubusercontent.com/six2dez/23a996bca189a11e88251367e6583053/raw/a66c4d8cf47a3bc95f5e9ba84773428662ea760c/notify_sample.conf $DEBUG_ERROR-eval wget -O ${GOPATH}/bin/gowitness https://github.com/sensepost/gowitness/releases/download/2.3.3/gowitness-2.3.3-linux-amd64 $DEBUG_STDeval chmod 755 ${GOPATH}/bin/gowitness $DEBUG_STD-sed -i 's/^miscellaneous/#miscellaneous/' ~/nuclei-templates/.nuclei-ignoreeval h8mail -g $DEBUG_STD-#stripping all Go binaries+## Stripping all Go binarieseval strip -s $HOME/go/bin/* $DEBUG_STDprintf "${yellow} Remember set your api keys:\n - amass (~/.config/amass/config.ini)\n - subfinder (~/.config/subfinder/config.yaml)\n - GitHub (~/Tools/.github_tokens)\n - SHODAN (SHODAN_API_KEY in reconftw.cfg)\n - SSRF Server (COLLAB_SERVER in reconftw.cfg) \n - Blind XSS Server (XSS_SERVER in reconftw.cfg) \n - theHarvester (~/Tools/theHarvester/api-keys.yml)\n - H8mail (~/Tools/h8mail_config.ini)\n\n${reset}"-printf "${bgreen} Finished!${reset}\n\n"printf "\n\n${bgreen}#######################################################################\n"diff --git a/reconftw.cfg b/reconftw.cfgindex c7dd547..beefef4 100644--- a/reconftw.cfg+++ b/reconftw.cfg@@ -16,6 +16,7 @@ reset='\033[0m'tools=~/ToolsNPROC=$(nproc || echo -n 1)output=${dir}/Recon/${domain}+SCRIPTPATH="$( cd "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P )"# Tools config files#NOTIFY_CONFIG=~/.config/notify/notify.conf # No need to define@@ -49,6 +50,7 @@ SUBBRUTE=trueSUBSCRAPING=trueSUBPERMUTE=trueSUBTAKEOVER=true+ZONETRANSFER=true# Web detectionWEBPROBESIMPLE=true@@ -84,6 +86,7 @@ SSTI=trueSQLI=trueBROKENLINKS=trueSPRAY=true+BYPASSER4XX=true# Extra featuresNOTIFICATION=falsediff --git a/reconftw.sh b/reconftw.shindex e8426f4..ca4da34 100755--- a/reconftw.sh+++ b/reconftw.sh@@ -2,8 +2,6 @@. ./reconftw.cfg-SCRIPTPATH="$( cd "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P )"-function banner(){printf "\n${bgreen}"printf " ██▀███ ▓█████ ▄████▄ ▒█████ ███▄ █ █████▒▄▄▄█████▓ █ █░\n"@@ -35,6 +33,8 @@ function tools_installed(){[ -n "$PATH" ] || { printf "${bred} [*] PATH var [NO]${reset}\n"; allinstalled=false;}[ -f $tools/degoogle_hunter/degoogle.py ] || { printf "${bred} [*] degoogle [NO]${reset}\n"; allinstalled=false;}[ -f $tools/ParamSpider/paramspider.py ] || { printf "${bred} [*] Paramspider [NO]${reset}\n"; allinstalled=false;}+ [ -f $tools/brutespray/brutespray.py ] || { printf "${bred} [*] brutespray [NO]${reset}\n"; allinstalled=false;}+ [ -f $tools/dnsrecon/dnsrecon.py ] || { printf "${bred} [*] dnsrecon [NO]${reset}\n"; allinstalled=false;}[ -f $tools/fav-up/favUp.py ] || { printf "${bred} [*] fav-up [NO]${reset}\n"; allinstalled=false;}[ -f $tools/Corsy/corsy.py ] || { printf "${bred} [*] Corsy [NO]${reset}\n"; allinstalled=false;}[ -f $tools/testssl.sh/testssl.sh ] || { printf "${bred} [*] testssl [NO]${reset}\n"; allinstalled=false;}@@ -45,12 +45,14 @@ function tools_installed(){[ -f $tools/degoogle_hunter/degoogle_hunter.sh ] || { printf "${bred} [*] degoogle_hunter [NO]${reset}\n"; allinstalled=false;}[ -f $tools/getjswords.py ] || { printf "${bred} [*] getjswords [NO]${reset}\n"; allinstalled=false;}eval type -P arjun $DEBUG_STD || { printf "${bred} [*] Arjun [NO]${reset}\n"; allinstalled=false;}+ eval type -P dirdar $DEBUG_STD || { printf "${bred} [*] dirdar [NO]${reset}\n"; allinstalled=false;}eval type -P github-endpoints $DEBUG_STD || { printf "${bred} [*] github-endpoints [NO]${reset}\n"; allinstalled=false;}eval type -P github-subdomains $DEBUG_STD || { printf "${bred} [*] github-subdomains [NO]${reset}\n"; allinstalled=false;}eval type -P gospider $DEBUG_STD || { printf "${bred} [*] gospider [NO]${reset}\n"; allinstalled=false;}eval type -P wafw00f $DEBUG_STD || { printf "${bred} [*] wafw00f [NO]${reset}\n"; allinstalled=false;}eval type -P subfinder $DEBUG_STD || { printf "${bred} [*] Subfinder [NO]${reset}\n"; allinstalled=false;}eval type -P assetfinder $DEBUG_STD || { printf "${bred} [*] Assetfinder [NO]${reset}\n"; allinstalled=false;}+ eval type -P dnsvalidator $DEBUG_STD || { printf "${bred} [*] dnsvalidator [NO]${reset}\n"; allinstalled=false;}eval type -P gowitness $DEBUG_STD || { printf "${bred} [*] gowitness [NO]${reset}\n"; allinstalled=false;}eval type -P findomain $DEBUG_STD || { printf "${bred} [*] Findomain [NO]${reset}\n"; allinstalled=false;}eval type -P amass $DEBUG_STD || { printf "${bred} [*] Amass [NO]${reset}\n"; allinstalled=false;}@@ -484,6 +486,21 @@ function subtakeover(){fi}+function zonetransfer(){+ if ([ ! -f "$called_fn_dir/.${FUNCNAME[0]}" ] || [ "$DIFF" = true ]) && [ "$ZONETRANSFER" = true ]+ then+ start_func "Zone transfer check"+ python3 $tools/dnsrecon/dnsrecon.py -d $domain -a > webs/zonetransfer.txt+ end_func "Results are saved in webs/zonetransfer.txt" ${FUNCNAME[0]}+ else+ if [ "$SPRAY" = false ]; then+ printf "\n${yellow} ${FUNCNAME[0]} skipped in this mode or defined in reconftw.cfg ${reset}\n\n"+ else+ printf "${yellow} ${FUNCNAME[0]} is already processed, to force executing ${FUNCNAME[0]} delete $called_fn_dir/.${FUNCNAME[0]} ${reset}\n\n"+ fi+ fi+}+########################################################################################################################################################## WEB DETECTION ####################################################################################################################################################################@@ -1117,6 +1134,22 @@ function spraying(){fi}+function 4xxbypass(){+ if ([ ! -f "$called_fn_dir/.${FUNCNAME[0]}" ] || [ "$DIFF" = true ]) && [ "$BYPASSER4XX" = true ]+ then+ start_func "403 bypass"+ cat fuzzing/*.txt | egrep '^4' | egrep -v '^404' | cut -d ' ' -f3 | dirdar -only-ok > .tmp/dirdar.txt+ cat .tmp/dirdar.txt | sed -e '1,12d' | sed '/^$/d' | anew -q vulns/4xxbypass.txt+ end_func "Results are saved in vulns/4xxbypass.txt" ${FUNCNAME[0]}+ else+ if [ "$SPRAY" = false ]; then+ printf "\n${yellow} ${FUNCNAME[0]} skipped in this mode or defined in reconftw.cfg ${reset}\n\n"+ else+ printf "${yellow} ${FUNCNAME[0]} is already processed, to force executing ${FUNCNAME[0]} delete $called_fn_dir/.${FUNCNAME[0]} ${reset}\n\n"+ fi+ fi+}+######################################################################################################################################################### OPTIONS & MGMT ####################################################################################################################################################################@@ -1345,6 +1378,7 @@ function all(){metadatasubdomains_fullsubtakeover+ zonetransferwebprobe_fullscreenshotfavicon@@ -1353,6 +1387,7 @@ function all(){nuclei_checkcms_scannerfuzz+ 4xxbypasscorsparamsurlchecks@@ -1381,6 +1416,7 @@ function recon(){metadatasubdomains_fullsubtakeover+ zonetransferwebprobe_fullscreenshotfavicon@@ -1389,6 +1425,7 @@ function recon(){nuclei_checkcms_scannerfuzz+ 4xxbypassparamsurlcheckswordlist_gen@@ -1420,6 +1457,7 @@ function multi_recon(){metadatasubdomains_fullsubtakeover+ zonetransferwebprobe_fullscreenshotfavicon@@ -1452,6 +1490,7 @@ function multi_recon(){cd $dircms_scannerfuzz+ 4xxbypassparamsurlcheckswordlist_gen@@ -1467,6 +1506,7 @@ function subs_menu(){startsubdomains_fullsubtakeover+ zonetransferend}@@ -1613,6 +1653,7 @@ while getopts ":hd:-:l:m:x:i:varspxwo:" opt; donuclei_checkcms_scannerfuzz+ 4xxbypasscorsparamsurlchecksdiff --git a/update.sh b/update.shindex 3665261..31d53d8 100755--- a/update.sh+++ b/update.sh@@ -43,7 +43,7 @@ printf "${bblue}\n Updating installed python packages is finished ${reset}\n"printf "${bgreen}#######################################################################\n"#Tools to be updated-repos="six2dez/degoogle_hunter davidtavarez/pwndb vortexau/dnsvalidator laramies/theHarvester x90skysn3k/brutespray EnableSecurity/wafw00f s0md3v/Arjun sqlmapproject/sqlmap 1ndianl33t/Gf-Patterns s0md3v/XSStrike gwen001/github-search eslam3kl/crtfinder dark-warlord14/LinkFinder ProjectAnte/dnsgen devanshbatham/ParamSpider s0md3v/Corsy Tuhinshubhra/CMSeeK pielco11/fav-up tomnomnom/gf codingo/Interlace blechschmidt/massdns devanshbatham/OpenRedireX obheda12/GitDorker"+repos="six2dez/degoogle_hunter davidtavarez/pwndb vortexau/dnsvalidator darkoperator/dnsrecon laramies/theHarvester x90skysn3k/brutespray EnableSecurity/wafw00f s0md3v/Arjun sqlmapproject/sqlmap 1ndianl33t/Gf-Patterns s0md3v/XSStrike gwen001/github-search eslam3kl/crtfinder dark-warlord14/LinkFinder ProjectAnte/dnsgen devanshbatham/ParamSpider s0md3v/Corsy Tuhinshubhra/CMSeeK pielco11/fav-up tomnomnom/gf codingo/Interlace blechschmidt/massdns devanshbatham/OpenRedireX obheda12/GitDorker"printf "\n\n${bgreen}#######################################################################\n"printf "${bgreen} reconFTW updater script ${reset}\n\n"