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
Fix macOS path initialization
Patricia Gagnon-Renaud88f514ce838e
diff --git a/reconftw.sh b/reconftw.shindex 7458b87..726bb33 100755--- a/reconftw.sh+++ b/reconftw.sh@@ -6037,8 +6037,21 @@ function help() {# macOS PATH initialization, thanks @0xtavian <3if [[ $OSTYPE == "darwin"* ]]; then- PATH="/usr/local/opt/gnu-getopt/bin:$PATH"- PATH="/usr/local/opt/coreutils/libexec/gnubin:$PATH"+ if ! command -v brew &> /dev/null; then+ printf "\n%bBrew is not installed or not in the PATH.%b\n\n" "$bred" "$reset"+ exit 1+ fi+ if [[ ! -x "$(brew --prefix gnu-getopt)/bin/getopt" ]]; then+ printf "\n%bBrew formula gnu-getopt is not installed.%b\n\n" "$bred" "$reset"+ exit 1+ fi+ if [[ ! -d "$(brew --prefix coreutils)/libexec/gnubin" ]]; then+ printf "\n%bBrew formula coreutils is not installed.%b\n\n" "$bred" "$reset"+ exit 1+ fi+ # Prefix is different depending on Intel vs Apple Silicon+ PATH="$(brew --prefix gnu-getopt)/bin:$PATH"+ PATH="$(brew --prefix coreutils)/libexec/gnubin:$PATH"fiPROGARGS=$(getopt -o 'd:m:l:x:i:o:f:q:c:z:rspanwvh::' --long 'domain:,list:,recon,subdomains,passive,all,web,osint,zen,deep,help,vps' -n 'reconFTW' -- "$@")