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
spinny removed
six2dezcacedb1751d0
diff --git a/assets/spinny/spinny.sh b/assets/spinny/spinny.shdeleted file mode 100755index 4a594bf..0000000--- a/assets/spinny/spinny.sh+++ /dev/null@@ -1,79 +0,0 @@-#!/usr/bin/env bash--declare __spinny__spinner_pid--declare -a __spinny__frames=()--spinny::start() {- spinny::_spinner &- __spinny__spinner_pid=$!-}--spinny::stop() {- [[ -z $__spinny__spinner_pid ]] && return 0-- kill -9 "$__spinny__spinner_pid"- # Use conditional to avoid exiting the program immediatly- wait "$__spinny__spinner_pid" 2>/dev/null || true- printf "\r\033[K"-}--spinny::_spinner() {- local delay=${SPINNY_DELAY:-0.3}- spinny::_load_frames- spinny::_pad_frames- while :; do- for frame in "${__spinny__frames[@]}"; do- printf "\r\033[K%s" "$frame"- sleep "$delay"- done- done-}--spinny::_pad_frames() {- # Frames with different lengths need to be padded- # for a smooth animation. We calculate the maximum- # size of all frames and pad all smaller ones with- # white space.- local max_length- max_length=$(spinny::_max_framelength)- local array_length=${#__spinny__frames[@]}- for ((i = 0; i < array_length; i++)); do- local frame=${__spinny__frames[i]}- local frame_length=${#frame}- diff=$((max_length - frame_length + 1))- # This adds the required number of white spaces- # to the frame- # TODO: Replace with pure bash if possible- filler=$(seq -s ' ' "$diff" | tr -d '[:digit:]')- __spinny__frames[i]="$frame$filler"- done-}--spinny::_max_framelength() {- local max=${#__spinny__frames[0]}- for frame in "${__spinny__frames[@]}"; do- local len=${#frame}- ((len > max)) && max=$len- done- echo "$max"-}--spinny::_load_frames() {- # Load custom frames if any or fall back on the default animation- if [[ -z $SPINNY_FRAMES ]]; then- # trunk-ignore(shellcheck/SC1003)- __spinny__frames=(- '\' "|" /)- else- __spinny__frames=("${SPINNY_FRAMES[@]}")- fi-}--spinny::_finish() {- # Make sure to remove variables and make the cursor visible again- unset __spinny__spinner_pid- unset __spinny__frames- tput cnorm-}--trap spinny::_finish EXITdiff --git a/reconftw.cfg b/reconftw.cfgindex fb94c2a..018c003 100644--- a/reconftw.cfg+++ b/reconftw.cfg@@ -16,8 +16,6 @@ proxy_url="http://127.0.0.1:8080/" # Proxy urlinstall_golang=true # Set it to false if you already have Golang configured and readyupgrade_tools=trueupgrade_before_running=false # Upgrade tools before running-#SPINNY_FRAMES=(. .. ... .... ..... " ...." " ..." " .." " ." " " )-SPINNY_DELAY=0.1#dir_output=/custom/output/path# Golang Vars (Comment or change on your own)diff --git a/reconftw.sh b/reconftw.shindex e9028c0..c4ba111 100755--- a/reconftw.sh+++ b/reconftw.sh@@ -53,7 +53,6 @@ function check_version() {}function tools_installed() {- spinny::startprintf "\n\n${bgreen}#######################################################################${reset}\n"printf "${bblue} Checking installed tools ${reset}\n\n"@@ -395,7 +394,6 @@ function tools_installed() {printf "${bblue} Tools check finished\n"printf "${bgreen}#######################################################################\n${reset}"- spinny::stop}###############################################################################################################@@ -403,7 +401,7 @@ function tools_installed() {###############################################################################################################function google_dorks() {- spinny::start+if { [[ ! -f "$called_fn_dir/.${FUNCNAME[0]}" ]] || [[ $DIFF == true ]]; } && [[ $GOOGLE_DORKS == true ]] && [[ $OSINT == true ]]; thenpython3 ${tools}/dorks_hunter/dorks_hunter.py -d "$domain" -o osint/dorks.txt || {echo "dorks_hunter command failed"@@ -417,11 +415,11 @@ function google_dorks() {printf "${yellow} ${FUNCNAME[0]} are already processed, to force executing ${FUNCNAME[0]} delete\n $called_fn_dir/.${FUNCNAME[0]} ${reset}\n\n"fifi- spinny::stop+}function github_dorks() {- spinny::start+if { [[ ! -f "$called_fn_dir/.${FUNCNAME[0]}" ]] || [[ $DIFF == true ]]; } && [[ $GITHUB_DORKS == true ]] && [[ $OSINT == true ]]; thenstart_func "${FUNCNAME[0]}" "Github Dorks in process"if [[ -s ${GITHUB_TOKENS} ]]; then@@ -447,11 +445,11 @@ function github_dorks() {printf "${yellow} ${FUNCNAME[0]} is already processed, to force executing ${FUNCNAME[0]} delete\n $called_fn_dir/.${FUNCNAME[0]} ${reset}\n\n"fifi- spinny::stop+}function github_repos() {- spinny::start+if { [[ ! -f "$called_fn_dir/.${FUNCNAME[0]}" ]] || [[ $DIFF == true ]]; } && [[ $GITHUB_REPOS == true ]] && [[ $OSINT == true ]]; thenstart_func "${FUNCNAME[0]}" "Github Repos analysis in process"@@ -480,11 +478,11 @@ function github_repos() {printf "${yellow} ${FUNCNAME[0]} is already processed, to force executing ${FUNCNAME[0]} delete\n $called_fn_dir/.${FUNCNAME[0]} ${reset}\n\n"fifi- spinny::stop+}function metadata() {- spinny::start+if { [[ ! -f "${called_fn_dir}/.${FUNCNAME[0]}" ]] || [[ ${DIFF} == true ]]; } && [[ ${METADATA} == true ]] && [[ ${OSINT} == true ]] && ! [[ ${domain} =~ ^[0-9]+\.[0-9]+\.[0-9]+\.[0-9] ]]; thenstart_func ${FUNCNAME[0]} "Scanning metadata in public files"metafinder -d "$domain" -l $METAFINDER_LIMIT -o osint -go -bi -ba &>>"$LOGFILE" || {@@ -507,11 +505,11 @@ function metadata() {fififi- spinny::stop+}function apileaks() {- spinny::start+if { [[ ! -f "$called_fn_dir/.${FUNCNAME[0]}" ]] || [[ $DIFF == true ]]; } && [[ $API_LEAKS == true ]] && [[ $OSINT == true ]] && ! [[ $domain =~ ^[0-9]+\.[0-9]+\.[0-9]+\.[0-9] ]]; thenstart_func ${FUNCNAME[0]} "Scanning for leaks in APIs public directories"@@ -521,14 +519,14 @@ function apileaks() {pushd "${tools}/SwaggerSpy" >/dev/null || {echo "Failed to pushd to ${tools}/SwaggerSpy in ${FUNCNAME[0]} @ line ${LINENO}"}- python3 swaggerspy.py $domain 2>>"$LOGFILE" | grep -i "[*]\|URL" > ${dir}/osint/swagger_leaks.txt+ python3 swaggerspy.py $domain 2>>"$LOGFILE" | grep -i "[*]\|URL" >${dir}/osint/swagger_leaks.txtpopd >/dev/null || {echo "Failed to popd in ${FUNCNAME[0]} @ line ${LINENO}"}- [ -s "osint/postman_leaks.txt" ] && trufflehog filesystem --directory=${dir}/osint/postman_leaks.txt -j | jq -c | anew -q ${dir}/osint/postman_leaks_trufflehog.json- [ -s "osint/swagger_leaks.txt" ] && trufflehog filesystem --directory=${dir}/osint/swagger_leaks.txt -j | jq -c | anew -q ${dir}/osint/swagger_leaks_trufflehog.json+ [ -s "osint/postman_leaks.txt" ] && trufflehog filesystem --directory=${dir}/osint/postman_leaks.txt -j | jq -c | anew -q ${dir}/osint/postman_leaks_trufflehog.json+ [ -s "osint/swagger_leaks.txt" ] && trufflehog filesystem --directory=${dir}/osint/swagger_leaks.txt -j | jq -c | anew -q ${dir}/osint/swagger_leaks_trufflehog.jsonend_func "Results are saved in $domain/osint/[software/authors/metadata_results].txt" ${FUNCNAME[0]}else@@ -544,11 +542,11 @@ function apileaks() {fififi- spinny::stop+}function emails() {- spinny::start+if { [[ ! -f "$called_fn_dir/.${FUNCNAME[0]}" ]] || [[ $DIFF == true ]]; } && [[ $EMAILS == true ]] && [[ $OSINT == true ]] && ! [[ $domain =~ ^[0-9]+\.[0-9]+\.[0-9]+\.[0-9] ]]; thenstart_func ${FUNCNAME[0]} "Searching emails/users/passwords leaks"emailfinder -d $domain 2>>"$LOGFILE" | anew -q .tmp/emailfinder.txt || {@@ -571,11 +569,11 @@ function emails() {fififi- spinny::stop+}function domain_info() {- spinny::start+if { [[ ! -f "$called_fn_dir/.${FUNCNAME[0]}" ]] || [[ $DIFF == true ]]; } && [[ $DOMAIN_INFO == true ]] && [[ $OSINT == true ]] && ! [[ $domain =~ ^[0-9]+\.[0-9]+\.[0-9]+\.[0-9] ]]; thenstart_func ${FUNCNAME[0]} "Searching domain info (whois, registrant name/email domains)"whois -H $domain >osint/domain_info_general.txt || { echo "whois command failed"; }@@ -599,11 +597,11 @@ function domain_info() {fififi- spinny::stop+}function ip_info() {- spinny::start+if { [[ ! -f "$called_fn_dir/.${FUNCNAME[0]}" ]] || [[ $DIFF == true ]]; } && [[ $IP_INFO == true ]] && [[ $OSINT == true ]] && [[ $domain =~ ^[0-9]+\.[0-9]+\.[0-9]+\.[0-9] ]]; thenstart_func ${FUNCNAME[0]} "Searching ip info"if [[ -n $WHOISXML_API ]]; then@@ -627,7 +625,7 @@ function ip_info() {fififi- spinny::stop+}###############################################################################################################@@ -688,7 +686,7 @@ function subdomains_full() {}function sub_passive() {- spinny::start+if { [[ ! -f "$called_fn_dir/.${FUNCNAME[0]}" ]] || [[ $DIFF == true ]]; } && [[ $SUBPASSIVE == true ]]; thenstart_subfunc ${FUNCNAME[0]} "Running : Passive Subdomain Enumeration"@@ -723,11 +721,11 @@ function sub_passive() {printf "${yellow} ${FUNCNAME[0]} is already processed, to force executing ${FUNCNAME[0]} delete\n $called_fn_dir/.${FUNCNAME[0]} ${reset}\n\n"fifi- spinny::stop+}function sub_crt() {- spinny::start+if { [[ ! -f "$called_fn_dir/.${FUNCNAME[0]}" ]] || [[ $DIFF == true ]]; } && [[ $SUBCRT == true ]]; thenstart_subfunc ${FUNCNAME[0]} "Running : Crtsh Subdomain Enumeration"crt -s -json -l ${CTR_LIMIT} $domain 2>>"$LOGFILE" | jq -r '.[].subdomain' 2>>"$LOGFILE" | sed -e 's/^\*\.//' | anew -q .tmp/crtsh_subs_tmp.txt 2>>"$LOGFILE" >/dev/null@@ -741,11 +739,11 @@ function sub_crt() {printf "${yellow} ${FUNCNAME[0]} is already processed, to force executing ${FUNCNAME[0]} delete\n $called_fn_dir/.${FUNCNAME[0]} ${reset}\n\n"fifi- spinny::stop+}function sub_active() {- spinny::start+if [[ ! -f "$called_fn_dir/.${FUNCNAME[0]}" ]] || [[ $DIFF == true ]]; thenstart_subfunc ${FUNCNAME[0]} "Running : Active Subdomain Enumeration"find .tmp -type f -iname "*_subs.txt" -exec cat {} + | anew -q .tmp/subs_no_resolved.txt@@ -769,11 +767,11 @@ function sub_active() {elseprintf "${yellow} ${FUNCNAME[0]} is already processed, to force executing ${FUNCNAME[0]} delete\n $called_fn_dir/.${FUNCNAME[0]} ${reset}\n\n"fi- spinny::stop+}function sub_noerror() {- spinny::start+if { [[ ! -f "$called_fn_dir/.${FUNCNAME[0]}" ]] || [[ $DIFF == true ]]; } && [[ $SUBNOERROR == true ]]; thenstart_subfunc ${FUNCNAME[0]} "Running : Checking NOERROR DNS response"if [[ $(echo "${RANDOM}thistotallynotexist${RANDOM}.$domain" | dnsx -r $resolvers -rcode noerror,nxdomain -retry 3 -silent | cut -d' ' -f2) == "[NXDOMAIN]" ]]; then@@ -796,11 +794,11 @@ function sub_noerror() {printf "${yellow} ${FUNCNAME[0]} is already processed, to force executing ${FUNCNAME[0]} delete\n $called_fn_dir/.${FUNCNAME[0]} ${reset}\n\n"fifi- spinny::stop+}function sub_dns() {- spinny::start+if [[ ! -f "$called_fn_dir/.${FUNCNAME[0]}" ]] || [[ $DIFF == true ]]; thenstart_subfunc ${FUNCNAME[0]} "Running : DNS Subdomain Enumeration and PTR search"if [[ $AXIOM != true ]]; then@@ -825,11 +823,11 @@ function sub_dns() {elseprintf "${yellow} ${FUNCNAME[0]} is already processed, to force executing ${FUNCNAME[0]} delete\n $called_fn_dir/.${FUNCNAME[0]} ${reset}\n\n"fi- spinny::stop+}function sub_brute() {- spinny::start+if { [[ ! -f "$called_fn_dir/.${FUNCNAME[0]}" ]] || [[ $DIFF == true ]]; } && [[ $SUBBRUTE == true ]]; thenstart_subfunc ${FUNCNAME[0]} "Running : Bruteforce Subdomain Enumeration"if [[ $AXIOM != true ]]; then@@ -859,11 +857,11 @@ function sub_brute() {printf "${yellow} ${FUNCNAME[0]} is already processed, to force executing ${FUNCNAME[0]} delete\n $called_fn_dir/.${FUNCNAME[0]} ${reset}\n\n"fifi- spinny::stop+}function sub_scraping() {- spinny::start+if { [[ ! -f "$called_fn_dir/.${FUNCNAME[0]}" ]] || [[ $DIFF == true ]]; } && [[ $SUBSCRAPING == true ]]; thenstart_subfunc ${FUNCNAME[0]} "Running : Source code scraping subdomain search"touch .tmp/scrap_subs.txt@@ -917,11 +915,11 @@ function sub_scraping() {printf "${yellow} ${FUNCNAME[0]} is already processed, to force executing ${FUNCNAME[0]} delete\n $called_fn_dir/.${FUNCNAME[0]} ${reset}\n\n"fifi- spinny::stop+}function sub_analytics() {- spinny::start+if { [[ ! -f "$called_fn_dir/.${FUNCNAME[0]}" ]] || [[ $DIFF == true ]]; } && [[ $SUBANALYTICS == true ]]; thenstart_subfunc ${FUNCNAME[0]} "Running : Analytics Subdomain Enumeration"if [[ -s ".tmp/probed_tmp_scrap.txt" ]]; then@@ -947,11 +945,11 @@ function sub_analytics() {printf "${yellow} ${FUNCNAME[0]} is already processed, to force executing ${FUNCNAME[0]} delete\n $called_fn_dir/.${FUNCNAME[0]} ${reset}\n\n"fifi- spinny::stop+}function sub_permut() {- spinny::start+if { [[ ! -f "$called_fn_dir/.${FUNCNAME[0]}" ]] || [[ $DIFF == true ]]; } && [[ $SUBPERMUTE == true ]]; thenstart_subfunc ${FUNCNAME[0]} "Running : Permutations Subdomain Enumeration"if [[ $DEEP == true ]] || [[ "$(cat subdomains/subdomains.txt | wc -l)" -le $DEEP_LIMIT ]]; then@@ -1006,11 +1004,11 @@ function sub_permut() {printf "${yellow} ${FUNCNAME[0]} is already processed, to force executing ${FUNCNAME[0]} delete\n $called_fn_dir/.${FUNCNAME[0]} ${reset}\n\n"fifi- spinny::stop+}function sub_regex_permut() {- spinny::start+if { [[ ! -f "$called_fn_dir/.${FUNCNAME[0]}" ]] || [[ $DIFF == true ]]; } && [[ $SUBREGEXPERMUTE == true ]]; thenstart_subfunc ${FUNCNAME[0]} "Running : Permutations by regex analysis"@@ -1047,11 +1045,11 @@ function sub_regex_permut() {printf "${yellow} ${FUNCNAME[0]} is already processed, to force executing ${FUNCNAME[0]} delete\n $called_fn_dir/.${FUNCNAME[0]} ${reset}\n\n"fifi- spinny::stop+}function sub_recursive_passive() {- spinny::start+if { [[ ! -f "$called_fn_dir/.${FUNCNAME[0]}" ]] || [[ $DIFF == true ]]; } && [[ $SUB_RECURSIVE_PASSIVE == true ]] && [[ -s "subdomains/subdomains.txt" ]]; thenstart_subfunc ${FUNCNAME[0]} "Running : Subdomains recursive search passive"# Passive recursive@@ -1076,11 +1074,11 @@ function sub_recursive_passive() {printf "${yellow} ${FUNCNAME[0]} is already processed, to force executing ${FUNCNAME[0]} delete\n $called_fn_dir/.${FUNCNAME[0]} ${reset}\n\n"fifi- spinny::stop+}function sub_recursive_brute() {- spinny::start+if { [[ ! -f "$called_fn_dir/.${FUNCNAME[0]}" ]] || [[ $DIFF == true ]]; } && [[ $SUB_RECURSIVE_BRUTE == true ]] && [[ -s "subdomains/subdomains.txt" ]]; thenstart_subfunc ${FUNCNAME[0]} "Running : Subdomains recursive search active"if [[ $(cat subdomains/subdomains.txt | wc -l) -le $DEEP_LIMIT ]]; then@@ -1144,11 +1142,11 @@ function sub_recursive_brute() {printf "${yellow} ${FUNCNAME[0]} is already processed, to force executing ${FUNCNAME[0]} delete\n $called_fn_dir/.${FUNCNAME[0]} ${reset}\n\n"fifi- spinny::stop+}function subtakeover() {- spinny::start+if { [[ ! -f "$called_fn_dir/.${FUNCNAME[0]}" ]] || [[ $DIFF == true ]]; } && [[ $SUBTAKEOVER == true ]]; thenstart_func ${FUNCNAME[0]} "Looking for possible subdomain and DNS takeover"touch .tmp/tko.txt@@ -1179,11 +1177,11 @@ function subtakeover() {printf "${yellow} ${FUNCNAME[0]} is already processed, to force executing ${FUNCNAME[0]} delete\n $called_fn_dir/.${FUNCNAME[0]} ${reset}\n\n"fifi- spinny::stop+}function zonetransfer() {- spinny::start+if { [[ ! -f "$called_fn_dir/.${FUNCNAME[0]}" ]] || [[ $DIFF == true ]]; } && [[ $ZONETRANSFER == true ]] && ! [[ $domain =~ ^[0-9]+\.[0-9]+\.[0-9]+\.[0-9] ]]; thenstart_func ${FUNCNAME[0]} "Zone transfer check"for ns in $(dig +short ns "$domain"); do dig axfr "$domain" @"$ns" >>subdomains/zonetransfer.txt; done@@ -1204,11 +1202,11 @@ function zonetransfer() {fififi- spinny::stop+}function s3buckets() {- spinny::start+if { [[ ! -f "$called_fn_dir/.${FUNCNAME[0]}" ]] || [[ $DIFF == true ]]; } && [[ $S3BUCKETS == true ]] && ! [[ $domain =~ ^[0-9]+\.[0-9]+\.[0-9]+\.[0-9] ]]; thenstart_func ${FUNCNAME[0]} "AWS S3 buckets search"# S3Scanner@@ -1247,7 +1245,7 @@ function s3buckets() {fififi- spinny::stop+}###############################################################################################################@@ -1255,7 +1253,7 @@ function s3buckets() {###############################################################################################################function geo_info() {- spinny::start+if { [[ ! -f "$called_fn_dir/.${FUNCNAME[0]}" ]] || [[ $DIFF == true ]]; } && [[ $GEO_INFO == true ]]; thenstart_func ${FUNCNAME[0]} "Running: ipinfo via ipapi.co"ips_file="${dir}/hosts/ips.txt"@@ -1304,12 +1302,12 @@ function geo_info() {end_func "Results are saved in hosts/geoip.txt and hosts/geoip.json" ${FUNCNAME[0]}elseif [[ $GEO_INFO == false ]]; then- printf "\n${yellow} ${FUNCNAME[0]} skipped in this mode or defined in reconftw.cfg ${reset}\n"- else- printf "${yellow} ${FUNCNAME[0]} is already processed, to force executing ${FUNCNAME[0]} delete\n $called_fn_dir/.${FUNCNAME[0]} ${reset}\n\n"- fi+ printf "\n${yellow} ${FUNCNAME[0]} skipped in this mode or defined in reconftw.cfg ${reset}\n"+ else+ printf "${yellow} ${FUNCNAME[0]} is already processed, to force executing ${FUNCNAME[0]} delete\n $called_fn_dir/.${FUNCNAME[0]} ${reset}\n\n"+ fifi- spinny::stop+}###############################################################################################################@@ -1317,7 +1315,7 @@ function geo_info() {###############################################################################################################function webprobe_simple() {- spinny::start+if { [[ ! -f "$called_fn_dir/.${FUNCNAME[0]}" ]] || [[ $DIFF == true ]]; } && [[ $WEBPROBESIMPLE == true ]]; thenstart_subfunc ${FUNCNAME[0]} "Running : Http probing $domain"if [[ $AXIOM != true ]]; then@@ -1343,11 +1341,11 @@ function webprobe_simple() {printf "${yellow} ${FUNCNAME[0]} is already processed, to force executing ${FUNCNAME[0]} delete\n $called_fn_dir/.${FUNCNAME[0]} ${reset}\n\n"fifi- spinny::stop+}function webprobe_full() {- spinny::start+if { [[ ! -f "$called_fn_dir/.${FUNCNAME[0]}" ]] || [[ $DIFF == true ]]; } && [[ $WEBPROBEFULL == true ]]; thenstart_func ${FUNCNAME[0]} "Http probing non standard ports"if [[ -s "subdomains/subdomains.txt" ]]; then@@ -1386,11 +1384,11 @@ function webprobe_full() {printf "${yellow} ${FUNCNAME[0]} is already processed, to force executing ${FUNCNAME[0]} delete\n $called_fn_dir/.${FUNCNAME[0]} ${reset}\n\n"fifi- spinny::stop+}function screenshot() {- spinny::start+if { [[ ! -f "$called_fn_dir/.${FUNCNAME[0]}" ]] || [[ $DIFF == true ]]; } && [[ $WEBSCREENSHOT == true ]]; thenstart_func ${FUNCNAME[0]} "Web Screenshots"[ ! -s "webs/webs_all.txt" ] && cat webs/webs.txt webs/webs_uncommon_ports.txt 2>/dev/null | anew -q webs/webs_all.txt@@ -1408,11 +1406,11 @@ function screenshot() {printf "${yellow} ${FUNCNAME[0]} is already processed, to force executing ${FUNCNAME[0]} delete\n $called_fn_dir/.${FUNCNAME[0]} ${reset}\n\n"fifi- spinny::stop+}function virtualhosts() {- spinny::start+if { [[ ! -f "$called_fn_dir/.${FUNCNAME[0]}" ]] || [[ $DIFF == true ]]; } && [[ $VIRTUALHOSTS == true ]]; thenstart_func ${FUNCNAME[0]} "Virtual Hosts dicovery"[ ! -s "webs/webs_all.txt" ] && cat webs/webs.txt webs/webs_uncommon_ports.txt 2>/dev/null | anew -q webs/webs_all.txt@@ -1435,7 +1433,7 @@ function virtualhosts() {printf "${yellow} ${FUNCNAME[0]} is already processed, to force executing ${FUNCNAME[0]} delete\n $called_fn_dir/.${FUNCNAME[0]} ${reset}\n\n"fifi- spinny::stop+}###############################################################################################################@@ -1443,7 +1441,7 @@ function virtualhosts() {###############################################################################################################function favicon() {- spinny::start+if { [[ ! -f "$called_fn_dir/.${FUNCNAME[0]}" ]] || [[ $DIFF == true ]]; } && [[ $FAVICON == true ]] && ! [[ $domain =~ ^[0-9]+\.[0-9]+\.[0-9]+\.[0-9] ]]; thenstart_func ${FUNCNAME[0]} "Favicon Ip Lookup"pushd "${tools}/fav-up" >/dev/null || {@@ -1476,11 +1474,11 @@ function favicon() {fififi- spinny::stop+}function portscan() {- spinny::start+if { [[ ! -f "$called_fn_dir/.${FUNCNAME[0]}" ]] || [[ $DIFF == true ]]; } && [[ $PORTSCANNER == true ]]; thenstart_func ${FUNCNAME[0]} "Port scan"if ! [[ $domain =~ ^[0-9]+\.[0-9]+\.[0-9]+\.[0-9] ]]; then@@ -1543,11 +1541,11 @@ function portscan() {printf "${yellow} ${FUNCNAME[0]} is already processed, to force executing ${FUNCNAME[0]} delete\n $called_fn_dir/.${FUNCNAME[0]} ${reset}\n\n"fifi- spinny::stop+}function cdnprovider() {- spinny::start+if { [[ ! -f "$called_fn_dir/.${FUNCNAME[0]}" ]] || [[ $DIFF == true ]]; } && [[ $CDN_IP == true ]]; thenstart_func ${FUNCNAME[0]} "CDN provider check"[ -s "subdomains/subdomains_dnsregs.json" ] && cat subdomains/subdomains_dnsregs.json | jq -r 'try . | .a[]' | grep -aEiv "^(127|10|169\.154|172\.1[6789]|172\.2[0-9]|172\.3[01]|192\.168)\." | grep -oE "\b([0-9]{1,3}\.){3}[0-9]{1,3}\b" | sort -u >.tmp/ips_cdn.txt@@ -1560,7 +1558,7 @@ function cdnprovider() {printf "${yellow} ${FUNCNAME[0]} is already processed, to force executing ${FUNCNAME[0]} delete\n $called_fn_dir/.${FUNCNAME[0]} ${reset}\n\n"fifi- spinny::stop+}###############################################################################################################@@ -1568,7 +1566,7 @@ function cdnprovider() {###############################################################################################################function waf_checks() {- spinny::start+if { [[ ! -f "$called_fn_dir/.${FUNCNAME[0]}" ]] || [[ $DIFF == true ]]; } && [[ $WAF_DETECTION == true ]]; thenstart_func ${FUNCNAME[0]} "Website's WAF detection"[ ! -s "webs/webs_all.txt" ] && cat webs/webs.txt webs/webs_uncommon_ports.txt 2>/dev/null | anew -q webs/webs_all.txt@@ -1596,11 +1594,11 @@ function waf_checks() {printf "${yellow} ${FUNCNAME[0]} is already processed, to force executing ${FUNCNAME[0]} delete\n $called_fn_dir/.${FUNCNAME[0]} ${reset}\n\n"fifi- spinny::stop+}function nuclei_check() {- spinny::start+if { [[ ! -f "$called_fn_dir/.${FUNCNAME[0]}" ]] || [[ $DIFF == true ]]; } && [[ $NUCLEICHECK == true ]]; thenstart_func ${FUNCNAME[0]} "Templates based web scanner"nuclei -update 2>>"$LOGFILE" >/dev/null@@ -1633,11 +1631,11 @@ function nuclei_check() {printf "${yellow} ${FUNCNAME[0]} is already processed, to force executing ${FUNCNAME[0]} delete\n $called_fn_dir/.${FUNCNAME[0]} ${reset}\n\n"fifi- spinny::stop+}function fuzz() {- spinny::start+if { [[ ! -f "$called_fn_dir/.${FUNCNAME[0]}" ]] || [[ $DIFF == true ]]; } && [[ $FUZZ == true ]]; thenstart_func ${FUNCNAME[0]} "Web directory fuzzing"[ ! -s "webs/webs_all.txt" ] && cat webs/webs.txt webs/webs_uncommon_ports.txt 2>/dev/null | anew -q webs/webs_all.txt@@ -1672,11 +1670,11 @@ function fuzz() {printf "${yellow} ${FUNCNAME[0]} is already processed, to force executing ${FUNCNAME[0]} delete\n $called_fn_dir/.${FUNCNAME[0]} ${reset}\n\n"fifi- spinny::stop+}function cms_scanner() {- spinny::start+if { [[ ! -f "$called_fn_dir/.${FUNCNAME[0]}" ]] || [[ $DIFF == true ]]; } && [[ $CMS_SCANNER == true ]]; thenstart_func ${FUNCNAME[0]} "CMS Scanner"mkdir -p $dir/cms && rm -rf $dir/cms/*@@ -1714,11 +1712,11 @@ function cms_scanner() {printf "${yellow} ${FUNCNAME[0]} is already processed, to force executing ${FUNCNAME[0]} delete\n $called_fn_dir/.${FUNCNAME[0]} ${reset}\n\n"fifi- spinny::stop+}function urlchecks() {- spinny::start+if { [[ ! -f "$called_fn_dir/.${FUNCNAME[0]}" ]] || [[ $DIFF == true ]]; } && [[ $URL_CHECK == true ]]; thenstart_func ${FUNCNAME[0]} "URL Extraction"mkdir -p js@@ -1794,11 +1792,11 @@ function urlchecks() {printf "${yellow} ${FUNCNAME[0]} is already processed, to force executing ${FUNCNAME[0]} delete\n $called_fn_dir/.${FUNCNAME[0]} ${reset}\n\n"fifi- spinny::stop+}function url_gf() {- spinny::start+if { [[ ! -f "$called_fn_dir/.${FUNCNAME[0]}" ]] || [[ $DIFF == true ]]; } && [[ $URL_GF == true ]]; thenstart_func ${FUNCNAME[0]} "Vulnerable Pattern Search"mkdir -p gf@@ -1822,11 +1820,11 @@ function url_gf() {printf "${yellow} ${FUNCNAME[0]} is already processed, to force executing ${FUNCNAME[0]} delete\n $called_fn_dir/.${FUNCNAME[0]} ${reset}\n\n"fifi- spinny::stop+}function url_ext() {- spinny::start+if { [[ ! -f "$called_fn_dir/.${FUNCNAME[0]}" ]] || [[ $DIFF == true ]]; } && [[ $URL_EXT == true ]]; thenif [[ -s ".tmp/url_extract_tmp.txt" ]]; thenstart_func ${FUNCNAME[0]} "Urls by extension"@@ -1848,11 +1846,11 @@ function url_ext() {printf "${yellow} ${FUNCNAME[0]} is already processed, to force executing ${FUNCNAME[0]} delete\n $called_fn_dir/.${FUNCNAME[0]} ${reset}\n\n"fifi- spinny::stop+}function jschecks() {- spinny::start+if { [[ ! -f "$called_fn_dir/.${FUNCNAME[0]}" ]] || [[ $DIFF == true ]]; } && [[ $JSCHECKS == true ]]; thenstart_func ${FUNCNAME[0]} "Javascript Scan"if [[ -s ".tmp/url_extract_js.txt" ]]; then@@ -1901,11 +1899,11 @@ function jschecks() {printf "${yellow} ${FUNCNAME[0]} is already processed, to force executing ${FUNCNAME[0]} delete\n $called_fn_dir/.${FUNCNAME[0]} ${reset}\n\n"fifi- spinny::stop+}function wordlist_gen() {- spinny::start+if { [[ ! -f "$called_fn_dir/.${FUNCNAME[0]}" ]] || [[ $DIFF == true ]]; } && [[ $WORDLIST == true ]]; thenstart_func ${FUNCNAME[0]} "Wordlist generation"if [[ -s ".tmp/url_extract_tmp.txt" ]]; then@@ -1927,11 +1925,11 @@ function wordlist_gen() {printf "${yellow} ${FUNCNAME[0]} is already processed, to force executing ${FUNCNAME[0]} delete\n $called_fn_dir/.${FUNCNAME[0]} ${reset}\n\n"fifi- spinny::stop+}function wordlist_gen_roboxtractor() {- spinny::start+if { [[ ! -f "$called_fn_dir/.${FUNCNAME[0]}" ]] || [[ $DIFF == true ]]; } && [[ $ROBOTSWORDLIST == true ]]; thenstart_func ${FUNCNAME[0]} "Robots wordlist generation"[ ! -s "webs/webs_all.txt" ] && cat webs/webs.txt webs/webs_uncommon_ports.txt 2>/dev/null | anew -q webs/webs_all.txt@@ -1946,11 +1944,11 @@ function wordlist_gen_roboxtractor() {printf "${yellow} ${FUNCNAME[0]} is already processed, to force executing ${FUNCNAME[0]} delete\n $called_fn_dir/.${FUNCNAME[0]} ${reset}\n\n"fifi- spinny::stop+}function password_dict() {- spinny::start+if { [[ ! -f "$called_fn_dir/.${FUNCNAME[0]}" ]] || [[ $DIFF == true ]]; } && [[ $PASSWORD_DICT == true ]]; thenstart_func ${FUNCNAME[0]} "Password dictionary generation"word=${domain%%.*}@@ -1963,7 +1961,7 @@ function password_dict() {printf "${yellow} ${FUNCNAME[0]} is already processed, to force executing ${FUNCNAME[0]} delete\n $called_fn_dir/.${FUNCNAME[0]} ${reset}\n\n"fifi- spinny::stop+}###############################################################################################################@@ -1971,7 +1969,7 @@ function password_dict() {###############################################################################################################function brokenLinks() {- spinny::start+if { [[ ! -f "$called_fn_dir/.${FUNCNAME[0]}" ]] || [[ $DIFF == true ]]; } && [[ $BROKENLINKS == true ]]; thenstart_func ${FUNCNAME[0]} "Broken links checks"[ ! -s "webs/webs_all.txt" ] && cat webs/webs.txt webs/webs_uncommon_ports.txt 2>/dev/null | anew -q webs/webs_all.txt@@ -2005,11 +2003,11 @@ function brokenLinks() {printf "${yellow} ${FUNCNAME[0]} is already processed, to force executing ${FUNCNAME[0]} delete\n $called_fn_dir/.${FUNCNAME[0]} ${reset}\n\n"fifi- spinny::stop+}function xss() {- spinny::start+if { [[ ! -f "$called_fn_dir/.${FUNCNAME[0]}" ]] || [[ $DIFF == true ]]; } && [[ $XSS == true ]] && [[ -s "gf/xss.txt" ]]; thenstart_func ${FUNCNAME[0]} "XSS Analysis"[ -s "gf/xss.txt" ] && cat gf/xss.txt | qsreplace FUZZ | sed '/FUZZ/!d' | Gxss -c 100 -p Xss | qsreplace FUZZ | sed '/FUZZ/!d' | anew -q .tmp/xss_reflected.txt@@ -2064,11 +2062,11 @@ function xss() {printf "${yellow} ${FUNCNAME[0]} is already processed, to force executing ${FUNCNAME[0]} delete\n $called_fn_dir/.${FUNCNAME[0]} ${reset}\n\n"fifi- spinny::stop+}function cors() {- spinny::start+if { [[ ! -f "$called_fn_dir/.${FUNCNAME[0]}" ]] || [[ $DIFF == true ]]; } && [[ $CORS == true ]]; thenstart_func ${FUNCNAME[0]} "CORS Scan"[ ! -s "webs/webs_all.txt" ] && cat webs/webs.txt webs/webs_uncommon_ports.txt 2>/dev/null | anew -q webs/webs_all.txt@@ -2081,11 +2079,11 @@ function cors() {printf "${yellow} ${FUNCNAME[0]} is already processed, to force executing ${FUNCNAME[0]} delete\n $called_fn_dir/.${FUNCNAME[0]} ${reset}\n\n"fifi- spinny::stop+}function open_redirect() {- spinny::start+if { [[ ! -f "$called_fn_dir/.${FUNCNAME[0]}" ]] || [[ $DIFF == true ]]; } && [[ $OPEN_REDIRECT == true ]] && [[ -s "gf/redirect.txt" ]]; thenstart_func ${FUNCNAME[0]} "Open redirects checks"if [[ $DEEP == true ]] || [[ $(cat gf/redirect.txt | wc -l) -le $DEEP_LIMIT ]]; then@@ -2106,11 +2104,11 @@ function open_redirect() {printf "${yellow} ${FUNCNAME[0]} is already processed, to force executing ${FUNCNAME[0]} delete\n $called_fn_dir/.${FUNCNAME[0]} ${reset}\n\n"fifi- spinny::stop+}function ssrf_checks() {- spinny::start+if { [[ ! -f "$called_fn_dir/.${FUNCNAME[0]}" ]] || [[ $DIFF == true ]]; } && [[ $SSRF_CHECKS == true ]] && [[ -s "gf/ssrf.txt" ]]; thenstart_func ${FUNCNAME[0]} "SSRF checks"if [[ -z $COLLAB_SERVER ]]; then@@ -2146,11 +2144,11 @@ function ssrf_checks() {printf "${yellow} ${FUNCNAME[0]} is already processed, to force executing ${FUNCNAME[0]} delete\n $called_fn_dir/.${FUNCNAME[0]} ${reset}\n\n"fifi- spinny::stop+}function crlf_checks() {- spinny::start+if { [[ ! -f "$called_fn_dir/.${FUNCNAME[0]}" ]] || [[ $DIFF == true ]]; } && [[ $CRLF_CHECKS == true ]]; thenstart_func ${FUNCNAME[0]} "CRLF checks"[ ! -s "webs/webs_all.txt" ] && cat webs/webs.txt webs/webs_uncommon_ports.txt 2>/dev/null | anew -q webs/webs_all.txt@@ -2167,11 +2165,11 @@ function crlf_checks() {printf "${yellow} ${FUNCNAME[0]} is already processed, to force executing ${FUNCNAME[0]} delete\n $called_fn_dir/.${FUNCNAME[0]} ${reset}\n\n"fifi- spinny::stop+}function lfi() {- spinny::start+if { [[ ! -f "$called_fn_dir/.${FUNCNAME[0]}" ]] || [[ $DIFF == true ]]; } && [[ $LFI == true ]] && [[ -s "gf/lfi.txt" ]]; thenstart_func ${FUNCNAME[0]} "LFI checks"if [[ -s "gf/lfi.txt" ]]; then@@ -2192,11 +2190,11 @@ function lfi() {printf "${yellow} ${FUNCNAME[0]} is already processed, to force executing ${FUNCNAME[0]} delete\n $called_fn_dir/.${FUNCNAME[0]} ${reset}\n\n"fifi- spinny::stop+}function ssti() {- spinny::start+if { [[ ! -f "$called_fn_dir/.${FUNCNAME[0]}" ]] || [[ $DIFF == true ]]; } && [[ $SSTI == true ]] && [[ -s "gf/ssti.txt" ]]; thenstart_func ${FUNCNAME[0]} "SSTI checks"if [[ -s "gf/ssti.txt" ]]; then@@ -2218,11 +2216,11 @@ function ssti() {printf "${yellow} ${FUNCNAME[0]} is already processed, to force executing ${FUNCNAME[0]} delete\n $called_fn_dir/.${FUNCNAME[0]} ${reset}\n\n"fifi- spinny::stop+}function sqli() {- spinny::start+if { [[ ! -f "$called_fn_dir/.${FUNCNAME[0]}" ]] || [[ $DIFF == true ]]; } && [[ $SQLI == true ]] && [[ -s "gf/sqli.txt" ]]; thenstart_func ${FUNCNAME[0]} "SQLi checks"@@ -2247,11 +2245,11 @@ function sqli() {printf "${yellow} ${FUNCNAME[0]} is already processed, to force executing ${FUNCNAME[0]} delete\n $called_fn_dir/.${FUNCNAME[0]} ${reset}\n\n"fifi- spinny::stop+}function test_ssl() {- spinny::start+if { [[ ! -f "$called_fn_dir/.${FUNCNAME[0]}" ]] || [[ $DIFF == true ]]; } && [[ $TEST_SSL == true ]]; thenstart_func ${FUNCNAME[0]} "SSL Test"${tools}/testssl.sh/testssl.sh --quiet --color 0 -U -iL hosts/ips.txt 2>>"$LOGFILE" >vulns/testssl.txt@@ -2263,11 +2261,11 @@ function test_ssl() {printf "${yellow} ${FUNCNAME[0]} is already processed, to force executing ${FUNCNAME[0]} delete\n $called_fn_dir/.${FUNCNAME[0]} ${reset}\n\n"fifi- spinny::stop+}function spraying() {- spinny::start+if { [[ ! -f "$called_fn_dir/.${FUNCNAME[0]}" ]] || [[ $DIFF == true ]]; } && [[ $SPRAY == true ]]; thenstart_func ${FUNCNAME[0]} "Password spraying"@@ -2287,11 +2285,11 @@ function spraying() {printf "${yellow} ${FUNCNAME[0]} is already processed, to force executing ${FUNCNAME[0]} delete\n $called_fn_dir/.${FUNCNAME[0]} ${reset}\n\n"fifi- spinny::stop+}function command_injection() {- spinny::start+if { [[ ! -f "$called_fn_dir/.${FUNCNAME[0]}" ]] || [[ $DIFF == true ]]; } && [[ $COMM_INJ == true ]] && [[ -s "gf/rce.txt" ]]; thenstart_func ${FUNCNAME[0]} "Command Injection checks"[ -s "gf/rce.txt" ] && cat gf/rce.txt | qsreplace FUZZ | sed '/FUZZ/!d' | anew -q .tmp/tmp_rce.txt@@ -2310,11 +2308,11 @@ function command_injection() {printf "${yellow} ${FUNCNAME[0]} is already processed, to force executing ${FUNCNAME[0]} delete\n $called_fn_dir/.${FUNCNAME[0]} ${reset}\n\n"fifi- spinny::stop+}function 4xxbypass() {- spinny::start+if { [[ ! -f "$called_fn_dir/.${FUNCNAME[0]}" ]] || [[ $DIFF == true ]]; } && [[ $BYPASSER4XX == true ]]; thenif [[ $(cat fuzzing/fuzzing_full.txt 2>/dev/null | grep -E '^4' | grep -Ev '^404' | cut -d ' ' -f3 | wc -l) -le 1000 ]] || [[ $DEEP == true ]]; thenstart_func "403 bypass"@@ -2340,11 +2338,11 @@ function 4xxbypass() {printf "${yellow} ${FUNCNAME[0]} is already processed, to force executing ${FUNCNAME[0]} delete\n $called_fn_dir/.${FUNCNAME[0]} ${reset}\n\n"fifi- spinny::stop+}function prototype_pollution() {- spinny::start+if { [[ ! -f "$called_fn_dir/.${FUNCNAME[0]}" ]] || [[ $DIFF == true ]]; } && [[ $PROTO_POLLUTION == true ]]; thenstart_func ${FUNCNAME[0]} "Prototype Pollution checks"if [[ $DEEP == true ]] || [[ $(cat webs/url_extract.txt | wc -l) -le $DEEP_LIMIT ]]; then@@ -2361,11 +2359,11 @@ function prototype_pollution() {printf "${yellow} ${FUNCNAME[0]} is already processed, to force executing ${FUNCNAME[0]} delete\n $called_fn_dir/.${FUNCNAME[0]} ${reset}\n\n"fifi- spinny::stop+}function smuggling() {- spinny::start+if { [[ ! -f "$called_fn_dir/.${FUNCNAME[0]}" ]] || [[ $DIFF == true ]]; } && [[ $SMUGGLING == true ]]; thenstart_func ${FUNCNAME[0]} "HTTP Request Smuggling checks"[ ! -s "webs/webs_all.txt" ] && cat webs/webs.txt webs/webs_uncommon_ports.txt 2>/dev/null | anew -q webs/webs_all.txt@@ -2391,11 +2389,11 @@ function smuggling() {printf "${yellow} ${FUNCNAME[0]} is already processed, to force executing ${FUNCNAME[0]} delete\n $called_fn_dir/.${FUNCNAME[0]} ${reset}\n\n"fifi- spinny::stop+}function webcache() {- spinny::start+if { [[ ! -f "$called_fn_dir/.${FUNCNAME[0]}" ]] || [[ $DIFF == true ]]; } && [[ $WEBCACHE == true ]]; thenstart_func ${FUNCNAME[0]} "Web Cache Poisoning checks"[ ! -s "webs/webs_all.txt" ] && cat webs/webs.txt webs/webs_uncommon_ports.txt 2>/dev/null | anew -q webs/webs_all.txt@@ -2420,11 +2418,11 @@ function webcache() {printf "${yellow} ${FUNCNAME[0]} is already processed, to force executing ${FUNCNAME[0]} delete\n $called_fn_dir/.${FUNCNAME[0]} ${reset}\n\n"fifi- spinny::stop+}function fuzzparams() {- spinny::start+if { [[ ! -f "$called_fn_dir/.${FUNCNAME[0]}" ]] || [[ $DIFF == true ]]; } && [[ $FUZZPARAMS == true ]]; thenstart_func ${FUNCNAME[0]} "Fuzzing params values checks"if [[ $DEEP == true ]] || [[ $(cat webs/url_extract.txt | wc -l) -le $DEEP_LIMIT2 ]]; then@@ -2448,7 +2446,7 @@ function fuzzparams() {printf "${yellow} ${FUNCNAME[0]} is already processed, to force executing ${FUNCNAME[0]} delete\n $called_fn_dir/.${FUNCNAME[0]} ${reset}\n\n"fifi- spinny::stop+}###############################################################################################################@@ -2631,7 +2629,7 @@ function check_inscope() {}function resolvers_update() {- spinny::start+if [[ $generate_resolvers == true ]]; thenif [[ $AXIOM != true ]]; thenif [[ ! -s $resolvers ]] || [[ $(find "$resolvers" -mtime +1 -print) ]]; then@@ -2663,7 +2661,7 @@ function resolvers_update() {notification "Resolvers updated\n" goodfifi- spinny::stop+}function resolvers_update_quick_local() {@@ -2866,6 +2864,7 @@ function end() {printf "${bgreen}#######################################################################${reset}\n"#Seperator for more clear messges in telegram_Botecho "****** Stay safe 🦠 and secure 🔐 ******" | $NOTIFY+}###############################################################################################################@@ -3375,8 +3374,6 @@ function help() {########################################### START SCRIPT ####################################################################################################################################################################-source assets/spinny/spinny.sh-# macOS PATH initialization, thanks @0xtavian <3if [[ $OSTYPE == "darwin"* ]]; thenPATH="/usr/local/opt/gnu-getopt/bin:$PATH"