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
Merge pull request #921 from pgrenaud/fix-macos-support
six2dez0808ce5f5247
diff --cc reconftw.shindex 9562763,726bb33..1aa3a0d--- a/reconftw.sh+++ b/reconftw.sh@@@ -6042,16 -6037,24 +6042,29 @@@ 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"fi-PROGARGS=$(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' -- "$@")+PROGARGS=$(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,check-tools' -n 'reconFTW' -- "$@")++exit_status=$?+if [[ $exit_status -ne 0 ]]; then+ UNKNOWN_ARGUMENT=true+fi# Note the quotes around "$PROGARGS": they are essential!eval set -- "$PROGARGS"