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
Passive port scan added
six2dezc9c6c0063c50
diff --git a/reconftw.config b/reconftw.configindex 18594ca..84047fb 100644--- a/reconftw.config+++ b/reconftw.config@@ -46,6 +46,8 @@ SUBTAKEOVER=trueWEBPROBEFULL=trueWEBSCREENSHOT=truePORTSCANNER=true+PORTSCAN_PASSIVE=true+PORTSCAN_ACTIVE=trueNUCLEICHECK=trueURL_GF=trueJSCHECKS=truediff --git a/reconftw.sh b/reconftw.shindex 10ed596..fa833b3 100755--- a/reconftw.sh+++ b/reconftw.sh@@ -356,7 +356,7 @@ sub_scraping(){if ([ ! -f "$called_fn_dir/.${FUNCNAME[0]}" ] || [ "$DIFF" = true ]) && [ "$SUBSCRAPING" = true ]thenstart=`date +%s`- printf "${yellow} Running : JS scraping subdomain search${reset}\n"+ printf "${yellow} Running : Web scraping subdomain search${reset}\n"touch .tmp/scrap_subs.txtcat ${domain}_subdomains.txt | httpx -follow-host-redirects -H "${HEADER}" -status-code -timeout 15 -silent -no-color | grep '\[200\]' | cut -d ' ' -f1 | anew -q .tmp/${domain}_probed_tmp.txteval python3 $tools/JSFinder/JSFinder.py -f .tmp/${domain}_probed_tmp.txt -os .tmp/scrap_subs.txt $DEBUG_STD@@ -535,12 +535,25 @@ portscan(){echo "$sub $(dig +short a $sub | tail -n1)" | anew -q ${domain}_subdomains_ips.txtdonecat ${domain}_subdomains_ips.txt | cut -d ' ' -f2 | cf-check -c $NPROC | anew -q .tmp/${domain}_ips_nowaf.txt- eval nmap --top-ports 1000 -sV -n --max-retries 2 -iL .tmp/${domain}_ips_nowaf.txt -oN ${domain}_portscan.txt $DEBUG_STD- eval cat ${domain}_portscan.txt $DEBUG_ERROR && touch $called_fn_dir/.${FUNCNAME[0]}++ if [ "$PORTSCAN_PASSIVE" = true ]+ then+ for sub in $(cat .tmp/${domain}_ips_nowaf.txt); do+ shodan host $sub 2>/dev/null >> ${domain}_portscan_passive.txt && echo echo "\n##########################\n" >> ${domain}_portscan_passive.txt+ done+ fi++ if [ "$PORTSCAN_ACTIVE" = true ]+ then+ eval nmap --top-ports 1000 -sV -n --max-retries 2 -iL .tmp/${domain}_ips_nowaf.txt -oN ${domain}_portscan_active.txt $DEBUG_STD+ fi++ #eval cat ${domain}_portscan.txt $DEBUG_ERROR+ touch $called_fn_dir/.${FUNCNAME[0]}end=`date +%s`getElapsedTime $start $endprintf "${bblue}\n Port scan Finished in ${runtime}${reset}\n"- printf "${bblue} Results are saved in ${domain}_portscan.txt${reset}\n"+ printf "${bblue} Results are saved in ${domain}_portscan_[passive|active].txt${reset}\n"printf "${bgreen}#######################################################################\n\n"elseprintf "${yellow} ${FUNCNAME[0]} is already processed, to force executing ${FUNCNAME[0]} delete $called_fn_dir/.${FUNCNAME[0]} ${reset}\n\n"